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());