Update Form Designer - Form Code Generation - Avoid negative values for X() and Y()
@@ -218,8 +218,8 @@ class FormDesigner_QWidget from QWidget
cOutput += '
#{f9} ' + nl
}
- cOutput = substr(cOutput,"#{f1}",""+parentwidget().x())
- cOutput = substr(cOutput,"#{f2}",""+parentwidget().y())
+ cOutput = substr(cOutput,"#{f1}",""+max(parentwidget().x(),0))
+ cOutput = substr(cOutput,"#{f2}",""+max(parentwidget().y(),0))
cOutput = substr(cOutput,"#{f3}",""+parentwidget().width())
cOutput = substr(cOutput,"#{f4}",""+parentwidget().height())
cOutput = substr(cOutput,"#{f5}",windowtitle())
