Skip to content

Commit

Permalink
[processing] [fixes #13034] Fix exception when editing model
Browse files Browse the repository at this point in the history
  • Loading branch information
radosuav authored and slarosa committed Sep 14, 2015
1 parent 9d87c65 commit 2a260ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/modeler/ModelerGraphicItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def getLinkPointForParameter(self, paramIndex):
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)
Expand Down

0 comments on commit 2a260ed

Please sign in to comment.