mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +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);
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user