Author: manolo
Date: 2011-04-05 10:16:35 -0700 (Tue, 05 Apr 2011)
New Revision: 8562
Log:
Mac OS: Fl_Window::resize() shd not modify the maximum window size if it is 0.

Modified:
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-04-05 16:41:31 UTC (rev 8561)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-04-05 17:16:35 UTC (rev 8562)
@@ -2180,9 +2180,9 @@
     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);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to