monitors: guard scale in onConnect

This commit is contained in:
vaxerski 2023-04-04 22:54:35 +01:00
parent eea99abc49
commit 00d199b477

View file

@ -131,6 +131,8 @@ void CMonitor::onConnect(bool noRule) {
setupDefaultWS(monitorRule); setupDefaultWS(monitorRule);
scale = monitorRule.scale; scale = monitorRule.scale;
if (scale < 0.1)
scale = getDefaultScale();
m_pThisWrap = nullptr; m_pThisWrap = nullptr;