projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7126962
)
Dont try to draw cells outside the valid range
author
John Darrington
<john@darrington.wattle.id.au>
Fri, 28 Nov 2008 22:35:54 +0000
(07:35 +0900)
committer
John Darrington
<john@darrington.wattle.id.au>
Fri, 28 Nov 2008 22:35:54 +0000
(07:35 +0900)
lib/gtksheet/gtksheet.c
patch
|
blob
|
history
diff --git
a/lib/gtksheet/gtksheet.c
b/lib/gtksheet/gtksheet.c
index 28279076faa32872ed8e88c390b84a91107d5338..ad56c665223ef4f8ad82183991b13062698a9024 100644
(file)
--- a/
lib/gtksheet/gtksheet.c
+++ b/
lib/gtksheet/gtksheet.c
@@
-2572,6
+2572,12
@@
change_active_cell (GtkSheet *sheet, gint row, gint col)
r.row0 = old_row - 1;
r.rowi = old_row + 1;
+ maximize_int (&r.row0, 0);
+ maximize_int (&r.col0, 0);
+ minimize_int (&r.rowi, psppire_axis_unit_count (sheet->vaxis) - 1);
+ minimize_int (&r.coli, psppire_axis_unit_count (sheet->haxis) - 1);
+
+
if ( gtk_sheet_range_isvisible (sheet, &r))
gtk_sheet_range_draw (sheet, &r);
}