Skip to content
Browse files

[processing] Fix items are not correctly placed in model designer

when view is not set to top-left of model scene

(cherry picked from commit 8154008)
  • Loading branch information
nyalldawson committed Mar 7, 2019
1 parent e6b9a89 commit f97dfc38aaf046dec9cb3c32cd89906286f10459
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/modeler/
@@ -328,11 +328,11 @@ def input_dropped(id, pos):
data = event.mimeData().data('application/x-vnd.qgis.qgis.algorithmid')
stream = QDataStream(data, QIODevice.ReadOnly)
algorithm_id = stream.readQString()
QTimer.singleShot(0, lambda id=algorithm_id, pos=event.pos(): alg_dropped(id, pos))
QTimer.singleShot(0, lambda id=algorithm_id, pos=self.view.mapToScene(event.pos()): alg_dropped(id, pos))
elif event.mimeData().hasText():
itemId = event.mimeData().text()
QTimer.singleShot(0, lambda id=itemId, pos=event.pos(): input_dropped(id, pos))
QTimer.singleShot(0, lambda id=itemId, pos=self.view.mapToScene(event.pos()): input_dropped(id, pos))

0 comments on commit f97dfc3

Please sign in to comment.
You can’t perform that action at this time.