From 0e3d5c519e06b552808f9ad5a43fc56addbfd0ec Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Fri, 10 Sep 2021 10:11:29 +0800 Subject: [PATCH] fix: crash when enable auto preview and click on an item --- caesium.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caesium.cpp b/caesium.cpp index 4a5a08d..3af5bcc 100644 --- a/caesium.cpp +++ b/caesium.cpp @@ -1084,7 +1084,7 @@ void Caesium::on_actionSettings_triggered() void Caesium::scaleImage(double factor) { scale_factor *= factor; - imageLabel1->resize(scale_factor * imageLabel1->pixmap()->size()); + imageLabel1->resize(scale_factor * imageLabel1->pixmap(Qt::ReturnByValue).size()); if (preview_on) { //imageLabel2->resize(scale_factor * imageLabel2->pixmap()->size());