Do not attempt to read bitmap icon with svg renderer

Pavel, this should cure your woes
This commit is contained in:
Juergen Spitzmueller 2023-05-12 09:39:20 +02:00
parent 3f7dc7d6df
commit 120ba1d3ec

View File

@ -2683,7 +2683,7 @@ QPixmap GuiApplication::getScaledPixmap(QString imagedir, QString name) const
QPixmap pm = getPixmap(imagedir, name, "svgz,png");
FileName fname = imageLibFileSearch(imagedir, name, "svgz,png");
QString fpath = toqstr(fname.absFileName());
if (!fpath.isEmpty()) {
if (!fpath.isEmpty() && !fpath.endsWith(".png")) {
QSvgRenderer svgRenderer(fpath);
if (svgRenderer.isValid()) {
pm = QPixmap(pm.size() * dpr);