diff options
Diffstat (limited to 'dw/widget.cc')
-rw-r--r-- | dw/widget.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/widget.cc b/dw/widget.cc index 6a046471..be64d83a 100644 --- a/dw/widget.cc +++ b/dw/widget.cc @@ -538,7 +538,8 @@ int Widget::getMinWidth (Extremes *extremes, bool forceValue) // TODO Not completely clear whether this is feasable: Within // the context of getAvailWidth(false) etc., getExtremes may not // be called. We ignore the minimal width then. - minWidth = extremes ? extremes->minWidthIntrinsic : 0; + minWidth = extremes ? + misc::max (extremes->minWidth, extremes->minWidthIntrinsic) : 0; } else minWidth = 0; |