summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-04-05 17:16:35 +0000
committerManolo Gouy <Manolo>2011-04-05 17:16:35 +0000
commitb149f786d763e88781d03020fd7813253ee8a8c0 (patch)
tree65eb0366682df2c94d5133c5a4efe255d52728a9 /src
parent7931fe1047556472b957c8c66aa6a3cb84c1bbc3 (diff)
Mac OS: Fl_Window::resize() shd not modify the maximum window size if it is 0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 53079e0c3..27b23260c 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2180,9 +2180,9 @@ void Fl_Window::resize(int X,int Y,int W,int H) {
if (is_a_resize) {
if (resizable()) {
if (W<minw) minw = W; // user request for resize takes priority
- if (W>maxw) maxw = W; // over a previously set size_range
+ if (maxw && W>maxw) maxw = W; // over a previously set size_range
if (H<minh) minh = H;
- if (H>maxh) maxh = H;
+ if (maxh && H>maxh) maxh = H;
size_range(minw, minh, maxw, maxh);
} else {
size_range(W, H, W, H);