Author: matt
Date: 2011-09-27 19:21:06 -0700 (Tue, 27 Sep 2011)
New Revision: 9069
Log:
STR 2706: fixed wrong parent() count for Fluid generated Fl_Input_Choice
callback code.
Modified:
branches/branch-1.3/fluid/Fl_Menu_Type.cxx
Modified: branches/branch-1.3/fluid/Fl_Menu_Type.cxx
===================================================================
--- branches/branch-1.3/fluid/Fl_Menu_Type.cxx 2011-09-28 02:11:14 UTC (rev
9068)
+++ branches/branch-1.3/fluid/Fl_Menu_Type.cxx 2011-09-28 02:21:06 UTC (rev
9069)
@@ -205,6 +205,9 @@
write_c(" ((%s*)(o", k);
Fl_Type* t = parent; while (t->is_menu_item()) t = t->parent;
Fl_Type *q = 0;
+ // Go up one more level for Fl_Input_Choice, as these are groups
themselves
+ if (t && !strcmp(t->type_name(), "Fl_Input_Choice"))
+ write_c("->parent()");
for (t = t->parent; t && t->is_widget() && !is_class(); q = t, t =
t->parent)
write_c("->parent()");
if (!q || strcmp(q->type_name(), "widget_class"))
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit