[processing] fixed bug in ModelerScene when position of output is not defined

This commit is contained in:
volaya 2014-08-22 11:31:23 +02:00
parent 3fdf12b947
commit 2fa73f0b9e

View File

@ -123,7 +123,7 @@ class ModelerScene(QtGui.QGraphicsScene):
self.addItem(item)
pos = alg.outputs[key].pos
if pos is None:
pos = (alg.pos() + QtCore.QPointF(ModelerGraphicItem.BOX_WIDTH, 0)
pos = (alg.pos + QtCore.QPointF(ModelerGraphicItem.BOX_WIDTH, 0)
+ self.algItems[alg.name].getLinkPointForOutput(idx))
item.setPos(pos)
outputItems[key] = item