mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user