summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/window/dialog.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index e66155d1cc60..95d0e1326b08 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -664,7 +664,8 @@ Size bestmaxFrameSizeForScreenSize(const Size &rScreenSize)
else
h -= 100;
- return Size(w, h);
+ return Size(std::max<long>(w, 640 - 15),
+ std::max<long>(h, 480 - 50));
}
void Dialog::StateChanged( StateChangedType nType )