summaryrefslogtreecommitdiff
path: root/grc/gui/DrawingArea.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/DrawingArea.py')
-rw-r--r--grc/gui/DrawingArea.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/gui/DrawingArea.py b/grc/gui/DrawingArea.py
index 3d001f8c1e..94dfcf1370 100644
--- a/grc/gui/DrawingArea.py
+++ b/grc/gui/DrawingArea.py
@@ -91,7 +91,8 @@ class DrawingArea(Gtk.DrawingArea):
"""
Handle a drag and drop by adding a block at the given coordinate.
"""
- self._flow_graph.add_new_block(selection_data.get_text(), (x, y))
+ coords = x / self.zoom_factor, y / self.zoom_factor
+ self._flow_graph.add_new_block(selection_data.get_text(), coords)
def _handle_mouse_scroll(self, widget, event):
if event.get_state() & Gdk.ModifierType.CONTROL_MASK: