fix: crash when enable auto preview and click on an item

This commit is contained in:
Gary Wang 2021-09-10 10:11:29 +08:00
parent 216e1a9f71
commit 0e3d5c519e

View File

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