summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--README2
-rw-r--r--TODO1
-rw-r--r--src/controller/actions/sel_save.sqc3
-rw-r--r--src/controller/callbacks/mouse.c10
-rw-r--r--src/model/data/base.sqc3
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);
}
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.