eda/gui/TableEditor: Fixed bad integral type for id
authorJerome St-Louis <jerome@ecere.com>
Wed, 21 Dec 2016 03:46:42 +0000 (22:46 -0500)
committerJerome St-Louis <jerome@ecere.com>
Wed, 21 Dec 2016 05:51:21 +0000 (00:51 -0500)
- Was causing overflow into 'active' and resulting in active not being on by default

eda/libeda/src/gui.ec
eda/libeda/src/gui/TableEditor.ec

index c27b472..53e9cc2 100644 (file)
@@ -793,7 +793,7 @@ public:
                r.Add();
                {
                   // Patch for SQLite driver which auto-increments IDs
-                  int curID = 0;
+                  Id curID = 0;
                   if(r.GetData(fldId, curID))
                      id = curID;
                   else
index 9114e98..4a1b01a 100644 (file)
@@ -550,7 +550,7 @@ public:
             r.Add();
             {
                // Patch for SQLite driver which auto-increments IDs
-               int curId = 0;
+               Id curId = 0;
                if(r.GetData(idField, curId))
                   id = curId;
                else