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
  • Loading branch information
nyalldawson committed Mar 5, 2019
1 parent 30f786c commit 8154008dafd9ff641816bda80b6a3c03c89de165
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/modeler/
@@ -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))

0 comments on commit 8154008

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