Skip to content


[processing] Fix items are not correctly placed in model designer
Browse files Browse the repository at this point in the history
when view is not set to top-left of model scene
  • Loading branch information
nyalldawson committed Mar 4, 2019
1 parent 3aff69c commit 0375513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/modeler/
Expand Up @@ -358,11 +358,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))
Expand Down

0 comments on commit 0375513

Please sign in to comment.