From b149f786d763e88781d03020fd7813253ee8a8c0 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 5 Apr 2011 17:16:35 +0000 Subject: 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 --- src/Fl_cocoa.mm | 4 ++-- 1 file 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 (Wmaxw) maxw = W; // over a previously set size_range + if (maxw && W>maxw) maxw = W; // over a previously set size_range if (Hmaxh) maxh = H; + if (maxh && H>maxh) maxh = H; size_range(minw, minh, maxw, maxh); } else { size_range(W, H, W, H); -- cgit v1.2.3