Fix crash in qGraphView constructor

This commit is contained in:
Mark Watkins 2014-05-16 19:34:25 +10:00
parent 6df63bd854
commit d04f5c310d

View File

@ -289,7 +289,7 @@ gGraphView::gGraphView(QWidget *parent, gGraphView *shared)
// pixmapcache.setCacheLimit(10240*2);
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
m_dpr = this->windowHandle()->devicePixelRatio();
m_dpr = devicePixelRatio(); // this->windowHandle()->devicePixelRatio();
#else
m_dpr = 1;
#endif