mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-21 13:10:47 +00:00
Fix crash in qGraphView constructor
This commit is contained in:
parent
6df63bd854
commit
d04f5c310d
@ -289,7 +289,7 @@ gGraphView::gGraphView(QWidget *parent, gGraphView *shared)
|
|||||||
|
|
||||||
// pixmapcache.setCacheLimit(10240*2);
|
// pixmapcache.setCacheLimit(10240*2);
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||||
m_dpr = this->windowHandle()->devicePixelRatio();
|
m_dpr = devicePixelRatio(); // this->windowHandle()->devicePixelRatio();
|
||||||
#else
|
#else
|
||||||
m_dpr = 1;
|
m_dpr = 1;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user