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:
eb8b7c1
)
Fixed crash when scrolling
author
John Darrington
<john@darrington.wattle.id.au>
Sat, 29 Nov 2008 00:21:54 +0000
(09:21 +0900)
committer
John Darrington
<john@darrington.wattle.id.au>
Sat, 29 Nov 2008 00:21:54 +0000
(09:21 +0900)
lib/gtksheet/gtksheet.c
patch
|
blob
|
history
diff --git
a/lib/gtksheet/gtksheet.c
b/lib/gtksheet/gtksheet.c
index 57613f1c7ebe38b69ded5a7dfa7042e7ac96cc03..b908693e0ad949f83416c3fa0750e36286753ee3 100644
(file)
--- a/
lib/gtksheet/gtksheet.c
+++ b/
lib/gtksheet/gtksheet.c
@@
-4748,6
+4748,9
@@
draw_column_title_buttons_range (GtkSheet *sheet, gint first, gint last)
rect.x -= sheet->hadjustment->value;
+ minimize_int (&rect.width, sheet->column_title_area.width);
+ maximize_int (&rect.x, 0);
+
gdk_window_begin_paint_rect (sheet->column_title_window, &rect);
for (col = first ; col <= last ; ++col)
@@
-4794,6
+4797,9
@@
draw_row_title_buttons_range (GtkSheet *sheet, gint first, gint last)
rect.y -= sheet->vadjustment->value;
+ minimize_int (&rect.height, sheet->row_title_area.height);
+ maximize_int (&rect.y, 0);
+
gdk_window_begin_paint_rect (sheet->row_title_window, &rect);
for (row = first; row <= last; ++row)
{