mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Do not attempt to read bitmap icon with svg renderer
Pavel, this should cure your woes
This commit is contained in:
parent
3f7dc7d6df
commit
120ba1d3ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user