[processing] [fixes #13034] Fix exception when editing model

This commit is contained in:
radosuav 2015-08-21 10:34:02 +02:00 committed by Salvatore Larosa
parent 9d87c65614
commit 2a260edba8

View File

@ -288,7 +288,7 @@ class ModelerGraphicItem(QGraphicsItem):
return QPointF(-ModelerGraphicItem.BOX_WIDTH / 2 + offsetX, h)
def getLinkPointForOutput(self, outputIndex):
if isinstance(self.element, Algorithm):
if isinstance(self.element, Algorithm) and self.element.algorithm.outputs:
outputIndex = (outputIndex if not self.element.outputsFolded else -1)
text = self.getAdjustedText(self.element.algorithm.outputs[outputIndex].description)
font = QFont('Verdana', 8)