[gnumeric] fix columns headers update when scrolled



commit b6cf3d6e12b7de18c9f79970a5aa42799a1d7091
Author: Jean Brefort <jean brefort normalesup org>
Date:   Fri Sep 25 10:32:10 2009 +0200

    fix columns headers update when scrolled

 ChangeLog               |    5 +++++
 NEWS                    |    1 +
 src/sheet-control-gui.c |    9 ++-------
 3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d9181ae..8e6a7e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-25  Jean Brefort  <jean brefort normalesup org>
+
+	* src/sheet-control-gui.c (scg_redraw_headers): fixed column headers update
+	when scrolled.
+
 2009-09-24  Morten Welinder  <terra gnome org>
 
 	* src/wbc-gtk.c (set_toolbar_position): When moving to a new
diff --git a/NEWS b/NEWS
index 509d47f..3c2a6ec 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Andreas:
 
 Jean:
 	* Make plugins GUI labels translatable. [#159806]
+	* Fix more canvas issues.
 
 Morten:
 	* Fix inter-process pasting of merged regions.
diff --git a/src/sheet-control-gui.c b/src/sheet-control-gui.c
index 5c951c6..4cb3954 100644
--- a/src/sheet-control-gui.c
+++ b/src/sheet-control-gui.c
@@ -196,13 +196,8 @@ scg_redraw_headers (SheetControl *sc,
 									 r->start.col, r->end.col+1);
 				}
 			}
-			if (col_canvas->scroll_x1) {
-				goc_canvas_invalidate (col_canvas,
-					right / scale, 0,
-					left / scale, G_MAXINT64);
-			} else
-				goc_canvas_invalidate (col_canvas,
-					left / scale, 0, right / scale, G_MAXINT64);
+			goc_canvas_invalidate (col_canvas,
+				left / scale, 0, right / scale, G_MAXINT64);
 		}
 
 		if (row && pane->row.canvas != NULL) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]