mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Fix error when adding parameter
This commit is contained in:
parent
c0293dce8b
commit
df07772a56
@ -522,7 +522,7 @@ class ModelerDialog(BASE, WIDGET):
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user