diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index 0241fd73..8c29a1d1 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -2012,8 +2012,7 @@ int MainWindow::sane_ex_callback(SANE_Handle hdev, int code, void *data, unsigne else if (8 == sane_img->header.depth) imgType = HGBASE_IMGTYPE_GRAY; } - else if (sane_img->header.format == SANE_FRAME_RGB - && 24 == sane_img->header.depth) + else if (sane_img->header.format == SANE_FRAME_RGB) { imgType = HGBASE_IMGTYPE_RGB; }