Skip to content
Permalink
Browse files

Fix error when adding parameter

  • Loading branch information
nyalldawson committed Jun 22, 2017
1 parent c0293dc commit df07772a5680306ecdd62a52451bd7aef520a5d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/modeler/ModelerDialog.py
@@ -522,7 +522,7 @@ def getPositionForParameterItem(self):
MARGIN = 20
BOX_WIDTH = 200
BOX_HEIGHT = 80
if len(self.model.parameterComponents() > 0):
if len(self.model.parameterComponents()) > 0:
maxX = max([i.position().x() for i in list(self.model.parameterComponents().values())])
newX = min(MARGIN + BOX_WIDTH + maxX, self.CANVAS_SIZE - BOX_WIDTH)
else:

0 comments on commit df07772

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