+ fix possible crash in debug mode
This commit is contained in:
parent
cda9bf9ed5
commit
433efbc115
|
@ -362,7 +362,11 @@ QPixmap BitmapFactoryInst::pixmapFromSvg(const QByteArray& contents, const QSize
|
|||
return QPixmap();
|
||||
}
|
||||
frame->setContent(contents, QString::fromAscii("image/svg+xml"));
|
||||
qApp->processEvents();
|
||||
// Important to exclude user events here because otherwise
|
||||
// it may happen that an item the icon is created for gets
|
||||
// deleted in the meantime. This happens e.g. dragging over
|
||||
// the categories in the commands panel very quickly.
|
||||
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||
webPage.setViewportSize(webPage.mainFrame()->contentsSize());
|
||||
|
||||
double ww = webPage.viewportSize().width();
|
||||
|
|
Loading…
Reference in New Issue
Block a user