-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/controller/actions/sel_save.sqc | 3 | ||||
-rw-r--r-- | src/controller/callbacks/mouse.c | 10 | ||||
-rw-r--r-- | src/model/data/base.sqc | 3 |
5 files changed, 12 insertions, 7 deletions
diff --git a/src/controller/actions/sel_save.sqc b/src/controller/actions/sel_save.sqc index 79fa3de..922071e 100644 --- a/src/controller/actions/sel_save.sqc +++ b/src/controller/actions/sel_save.sqc @@ -29,7 +29,8 @@ sel_save (void) { if (S.selection.set[i] == true) { - strncpy (gi, S.gi_data + i + 3, sizeof (gi)); + char *gi_data_row = S.gi_data + (i*20); + strncpy (gi, gi_data_row + 3, sizeof (gi)); EXEC SQL INSERT INTO vis_selection VALUES (:gi); } } |