We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff321e commit c17ff59Copy full SHA for c17ff59
src/core/ui/mainwindow.cpp
@@ -142,7 +142,8 @@ void MainWindow::resizeEvent(QResizeEvent *event)
142
143
scaleSize.scale(_ui->scrLabel->contentsRect().size(), Qt::KeepAspectRatio);
144
145
- if (!_ui->scrLabel->pixmap() || scaleSize != _ui->scrLabel->pixmap()->size())
+ const QPixmap pixmap = _ui->scrLabel->pixmap(Qt::ReturnByValue);
146
+ if (pixmap.isNull() || scaleSize != pixmap.size())
147
updatePixmap(Core::instance()->getPixmap());
148
}
149
0 commit comments