diff --git a/ChangeLog b/ChangeLog index 9d2d6f4e..8c1215c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-09-02 Markus Gans + * Method setGeometry assigns now the full widget size to + the double_flatline_mask (previously, it was the adjust size) + 2016-08-28 Markus Gans * Remove obsolete code from FDialog * An incorrect parameter can now return an error message diff --git a/src/fwidget.cpp b/src/fwidget.cpp index 6571e210..fedab9ea 100644 --- a/src/fwidget.cpp +++ b/src/fwidget.cpp @@ -1867,6 +1867,7 @@ void FWidget::setGeometry (int x, int y, int w, int h, bool adjust) xpos = x; ypos = y; } + (w > 0) ? width = w : width = 1; (h > 0) ? height = h : height = 1; @@ -1884,13 +1885,13 @@ void FWidget::setGeometry (int x, int y, int w, int h, bool adjust) , height ); adjustWidgetSizeGlobalShadow = adjustWidgetSizeGlobal + shadow; - if ( adjust ) - adjustSize(); - double_flatline_mask.top.resize (uLong(width), false); double_flatline_mask.right.resize (uLong(height), false); double_flatline_mask.bottom.resize (uLong(width), false); double_flatline_mask.left.resize (uLong(height), false); + + if ( adjust ) + adjustSize(); } //----------------------------------------------------------------------