[gnumeric] Fixed mouse cursor for object resizing in RTL mode. [#605514]



commit c088dbcd61ada517599ec28ad5422359be674666
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Dec 27 10:51:02 2009 +0100

    Fixed mouse cursor for object resizing in RTL mode. [#605514]

 ChangeLog      |    5 +++++
 NEWS           |    1 +
 src/gnm-pane.c |    3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 03ca506..8258ead 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-27  Jean Brefort  <jean brefort normalesup org>
+
+	* src/gnm-pane.c (control_point_set_cursor): use the right cursor in RTL
+	mode.
+
 2009-12-27  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* src/sheet-object.c (cb_so_size_position): use g_return_if_fail
diff --git a/NEWS b/NEWS
index 84abfb0..06937ec 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ Andreas:
 Jean
 	* Fix import export of line type in scatter plots. [#605043]
 	* Force sharing of first series in line plots when requested. [#605330]
+	* Fixed mouse cursor for object resizing in RTL mode. [#605514]
 
 --------------------------------------------------------------------------
 Gnumeric 1.9.17
diff --git a/src/gnm-pane.c b/src/gnm-pane.c
index 7e8d2da..2a12540 100644
--- a/src/gnm-pane.c
+++ b/src/gnm-pane.c
@@ -2424,6 +2424,9 @@ control_point_set_cursor (SheetControlGUI const *scg, GocItem *ctrl_pt)
 	gboolean invert_v = coords [1] > coords [3];
 	GdkCursorType cursor;
 
+	if (goc_canvas_get_direction (ctrl_pt->canvas) == GOC_DIRECTION_RTL)
+		invert_h = !invert_h;
+
 	switch (GPOINTER_TO_INT (g_object_get_data (G_OBJECT (ctrl_pt), "index"))) {
 	case 1: invert_v = !invert_v;
 		/* fallthrough */



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