Fix scroll mouse to lower it can flips the diagram, thanks Gabberworld for this patch

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5235 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2018-02-10 16:32:57 +00:00
parent 5445ae6b00
commit 45cbe170c9

View File

@@ -289,7 +289,9 @@ void DiagramView::zoom(const qreal zoom_factor)
QSettings settings;
if (settings.value("diagrameditor/zoom-out-beyond-of-folio", false).toBool() ||
(horizontalScrollBar()->maximum() || verticalScrollBar()->maximum()) )
scale(zoom_factor, zoom_factor);
if (zoom_factor >= 0){
scale(zoom_factor, zoom_factor);
}
}
m_diagram->adjustSceneRect();
adjustGridToZoom();