extras/gui/controls/CheckListBox: Fixed for static linking
[sdk] / extras / gui / controls / CheckListBox.ec
index 1a5b3b5..84474d5 100644 (file)
@@ -1,4 +1,8 @@
+#ifdef ECERE_STATIC
+import static "ecere"
+#else
 import "ecere"
+#endif
 
 class CheckListBoxButton : Button
 {
@@ -245,6 +249,8 @@ class CheckListBox : ListBox
             // Take out all children from rowChecks, checking them all
             UnsetChildren(rr);
 
+            NotifyChecked(master, this, row);
+
             for(parent = rr.parent; parent; parent = parent.parent)
             {
                CheckListBoxButton button = buttonMaps[(uintptr)parent];
@@ -304,8 +310,6 @@ class CheckListBox : ListBox
                }
             }
          }
-
-         NotifyChecked(master, this, row);
       }
    }