Skip to content

Commit df07772

Browse files
committed
Fix error when adding parameter
1 parent c0293dc commit df07772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/modeler/ModelerDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def getPositionForParameterItem(self):
522522
MARGIN = 20
523523
BOX_WIDTH = 200
524524
BOX_HEIGHT = 80
525-
if len(self.model.parameterComponents() > 0):
525+
if len(self.model.parameterComponents()) > 0:
526526
maxX = max([i.position().x() for i in list(self.model.parameterComponents().values())])
527527
newX = min(MARGIN + BOX_WIDTH + maxX, self.CANVAS_SIZE - BOX_WIDTH)
528528
else:

0 commit comments

Comments
 (0)