summaryrefslogtreecommitdiff
path: root/grc/gui/FlowGraph.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-08-30 16:28:24 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-09-12 12:15:35 -0600
commita867a290194228d09ba93f0f46e3a4e4523f5396 (patch)
treedf3d40d363831d204f28e97718c942d6312f4856 /grc/gui/FlowGraph.py
parenteeea99b45c0a0dccd935dc5203b71e0adf1430fe (diff)
grc: gtk3: make screnshots as png, pdf and svg
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r--grc/gui/FlowGraph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index df8e668eed..f04383f32c 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -30,7 +30,7 @@ from six.moves import filter
from gi.repository import GLib
-from . import Actions, Colors, Utils, Bars, Dialogs
+from . import Actions, Colors, Constants, Utils, Bars, Dialogs
from .Element import Element
from .external_editor import ExternalEditor
@@ -735,7 +735,7 @@ class FlowGraph(CoreFlowgraph, Element):
X, Y = self.coordinate
dX, dY = int(x - X), int(y - Y)
active = Actions.TOGGLE_SNAP_TO_GRID.get_active() or self.drawing_area.mod1_mask
- if not active or abs(dX) >= Utils.CANVAS_GRID_SIZE or abs(dY) >= Utils.CANVAS_GRID_SIZE:
+ if not active or abs(dX) >= Constants.CANVAS_GRID_SIZE or abs(dY) >= Constants.CANVAS_GRID_SIZE:
self.move_selected((dX, dY))
self.coordinate = (x, y)
# queue draw for animation