diff --git a/app/scanner/dialog_exportimagefile.cpp b/app/scanner/dialog_exportimagefile.cpp index 27eb5060..fbde1334 100644 --- a/app/scanner/dialog_exportimagefile.cpp +++ b/app/scanner/dialog_exportimagefile.cpp @@ -81,7 +81,7 @@ void Dialog_ExportImageFile::ThreadFunc(HGThread thread, HGPointer param) } HGImage img = nullptr; - HGImgFmt_LoadImageFromReader(imgFmtReader, j, nullptr, HGBASE_IMGTYPE_RGB, HGBASE_IMGORIGIN_TOP, &img); + HGImgFmt_LoadImageFromReader(imgFmtReader, j, nullptr, 0, HGBASE_IMGORIGIN_TOP, &img); if (nullptr != img) { HGImgFmtSaveInfo saveInfo; @@ -131,7 +131,7 @@ void Dialog_ExportImageFile::ThreadFunc(HGThread thread, HGPointer param) } HGImage img = nullptr; - HGImgFmt_LoadImageFromReader(imgFmtReader, j, nullptr, HGBASE_IMGTYPE_RGB, HGBASE_IMGORIGIN_TOP, &img); + HGImgFmt_LoadImageFromReader(imgFmtReader, j, nullptr, 0, HGBASE_IMGORIGIN_TOP, &img); if (nullptr != img) { char fileName[512]; diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index ed54f6ad..4299f3ba 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -2714,8 +2714,11 @@ void MainWindow::on_act_imageEdit_triggered() if (nullptr != img) { m_view->addImage(img); - m_modify = true; HGBase_DestroyImage(img); + m_modify = true; + + updateStatusBarPixelInfo(); + updateActionStatus(); } } }