Author: matt
Date: 2012-05-01 13:14:04 -0700 (Tue, 01 May 2012)
New Revision: 9423
Log:
Fixed widget update for relative coordinates

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

Modified: branches/branch-3.0/src/fltk3/run.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/run.cxx       2012-05-01 14:52:38 UTC (rev 
9422)
+++ branches/branch-3.0/src/fltk3/run.cxx       2012-05-01 20:14:04 UTC (rev 
9423)
@@ -1639,7 +1639,11 @@
 void fltk3::Widget::damage(uchar fl) {
   if (type() < fltk3::WINDOW) {
     // damage only the rectangle covered by a child widget:
-    damage(fl, x(), y(), w(), h());
+    if (is_group_relative()) {
+      damage(fl, 0, 0, w(), h());
+    } else {
+      damage(fl, x(), y(), w(), h());
+    }
   } else {
     // damage entire window by deleting the region:
     Fl_X* i = Fl_X::i((fltk3::Window*)this);

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

Reply via email to