Skip to content

Commit

Permalink
Fix serious crasher which occurs when manipulating layer tree with st…
Browse files Browse the repository at this point in the history
…yling panel open
nirvn authored and nyalldawson committed Apr 25, 2022
1 parent 758a451 commit 1393ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsproxystyle.cpp
Original file line number Diff line number Diff line change
@@ -75,15 +75,15 @@ QPixmap QgsAppStyle::generatedIconPixmap( QIcon::Mode iconMode, const QPixmap &p
QgsImageOperation::multiplyOpacity( im, 0.3 );
return QPixmap::fromImage( im );
}
break;
return pixmap;
}

case QIcon::Normal:
case QIcon::Active:
case QIcon::Selected:
return pixmap;
}
BUILTIN_UNREACHABLE

return QProxyStyle::generatedIconPixmap( iconMode, pixmap, opt );
}

0 comments on commit 1393ed9

Please sign in to comment.