eda; FieldBox class_no_expansion fix to using instance in a map. also some null check.
authorRejean Loyer <rejean.loyer@gmail.com>
Sun, 10 Mar 2013 04:01:28 +0000 (23:01 -0500)
committerJerome St-Louis <jerome@ecere.com>
Mon, 22 Apr 2013 06:00:22 +0000 (02:00 -0400)
eda/libeda/src/gui/controls/FieldBox.ec

index 6fc3bc9..f6d52ba 100644 (file)
@@ -6,6 +6,7 @@ private:
 
 public class FieldBox : DataBox
 {
+   class_no_expansion;
    size = { 100, 22 };
    borderStyle = deep;
 
@@ -22,7 +23,7 @@ public class FieldBox : DataBox
          {
             if(editor.table == field.table)
                result = editor.editRow;
-            else
+            else if(editor.lookups)
             {
                Lookup lookup = editor.lookups[field.table]; // Map<Table, Lookup> limits to single lookup per table
                if(lookup.valueField && lookup.findField && lookup.row && !lookup.row.nil)