+ fixes #0001998: For 32 px and 48 px the icons with a submenu in toolbars are not display at the good size

This commit is contained in:
wmayer
2015-04-17 23:16:28 +02:00
parent 40883ac597
commit f52ed288c1
2 changed files with 15 additions and 15 deletions

View File

@@ -165,7 +165,7 @@ Gui::Action * CmdDrawingNewPage::createAction(void)
QString s = QString::fromAscii("style=\"font-size:22px\">%1%2</tspan></text>").arg(paper).arg(id);
QByteArray data = file.readAll();
data.replace("style=\"font-size:22px\">A0</tspan></text>", s.toAscii());
a->setIcon(Gui::BitmapFactory().pixmapFromSvg(data, QSize(24,24)));
a->setIcon(Gui::BitmapFactory().pixmapFromSvg(data, QSize(64,64)));
}
a->setProperty("TemplatePaper", paper);