Author: manolo
Date: 2012-05-18 02:58:22 -0700 (Fri, 18 May 2012)
New Revision: 9527
Log:
Fixed fltk3::Group::resize() for bad change in r.9502

Modified:
   branches/branch-3.0/src/fltk3/Group.cxx

Modified: branches/branch-3.0/src/fltk3/Group.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/Group.cxx     2012-05-18 09:09:09 UTC (rev 
9526)
+++ branches/branch-3.0/src/fltk3/Group.cxx     2012-05-18 09:58:22 UTC (rev 
9527)
@@ -631,14 +631,18 @@
 
   Widget::resize(X,Y,W,H); // make new xywh values visible for children
 
-  if (children_) {
+  if (!resizable() || (dw==0 && dh==0) ) {
 
+    return;
+
+  } else if (children_) {
+
     // get changes in size/position from the initial size:
     dx = X - p[0];
     dw = W - (p[1]-p[0]);
     dy = Y - p[2];
     dh = H - (p[3]-p[2]);
-    /*if (as_window())*/ dx = dy = 0;
+    /* if (type() >= fltk3::WINDOW) */ dx = dy = 0;
     p += 4;
 
     // get initial size of resizable():

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

Reply via email to