From: Jerome St-Louis Date: Wed, 21 Dec 2016 03:46:42 +0000 (-0500) Subject: eda/gui/TableEditor: Fixed bad integral type for id X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?p=sdk;a=commitdiff_plain;h=f633af4316c6cf268908afec4967d63911c4768e eda/gui/TableEditor: Fixed bad integral type for id - Was causing overflow into 'active' and resulting in active not being on by default --- diff --git a/eda/libeda/src/gui.ec b/eda/libeda/src/gui.ec index c27b472..53e9cc2 100644 --- a/eda/libeda/src/gui.ec +++ b/eda/libeda/src/gui.ec @@ -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 diff --git a/eda/libeda/src/gui/TableEditor.ec b/eda/libeda/src/gui/TableEditor.ec index 9114e98..4a1b01a 100644 --- a/eda/libeda/src/gui/TableEditor.ec +++ b/eda/libeda/src/gui/TableEditor.ec @@ -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