fix: crash when enable auto preview and click on an item
This commit is contained in:
parent
216e1a9f71
commit
0e3d5c519e
@ -1084,7 +1084,7 @@ void Caesium::on_actionSettings_triggered()
|
|||||||
void Caesium::scaleImage(double factor)
|
void Caesium::scaleImage(double factor)
|
||||||
{
|
{
|
||||||
scale_factor *= factor;
|
scale_factor *= factor;
|
||||||
imageLabel1->resize(scale_factor * imageLabel1->pixmap()->size());
|
imageLabel1->resize(scale_factor * imageLabel1->pixmap(Qt::ReturnByValue).size());
|
||||||
if (preview_on)
|
if (preview_on)
|
||||||
{
|
{
|
||||||
//imageLabel2->resize(scale_factor * imageLabel2->pixmap()->size());
|
//imageLabel2->resize(scale_factor * imageLabel2->pixmap()->size());
|
||||||
|
Loading…
Reference in New Issue
Block a user