[gnumeric] Fix shift-arrow movement for sheet objects. [#645805]
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fix shift-arrow movement for sheet objects. [#645805]
- Date: Sun, 27 Mar 2011 08:00:20 +0000 (UTC)
commit b4a8a34a482c030dd7b02c5d475c5cdc55225373
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Sun Mar 27 01:59:49 2011 -0600
Fix shift-arrow movement for sheet objects. [#645805]
2011-03-27 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/sheet-control-gui.c (snap_pos_to_grid): don't move an aligned
object
ChangeLog | 5 +++++
NEWS | 3 +++
src/sheet-control-gui.c | 4 +---
3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a379aaf..e7a0200 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-27 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * src/sheet-control-gui.c (snap_pos_to_grid): don't move an aligned
+ object
+
2011-03-24 Morten Welinder <terra gnome org>
* configure.in: Post-release bump.
diff --git a/NEWS b/NEWS
index 0174a62..840bbbf 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
Gnumeric 1.10.15
+Andreas:
+ * Fix shift-arrow movement for sheet objects. [#645805]
+
--------------------------------------------------------------------------
Gnumeric 1.10.14
diff --git a/src/sheet-control-gui.c b/src/sheet-control-gui.c
index 21bc0b2..424f44b 100644
--- a/src/sheet-control-gui.c
+++ b/src/sheet-control-gui.c
@@ -2540,7 +2540,7 @@ typedef struct {
} ObjDragInfo;
static double
-snap_pos_to_grid (ObjDragInfo const *info, gboolean is_col, double w_pos,
+snap_pos_to_grid (ObjDragInfo const *info, gboolean is_col, double pos,
gboolean to_min)
{
GnmPane const *pane = info->pane;
@@ -2552,8 +2552,6 @@ snap_pos_to_grid (ObjDragInfo const *info, gboolean is_col, double w_pos,
ColRowInfo const *cr_info;
int sheet_max = colrow_max (is_col, sheet);
- double pos = w_pos + .5;
-
if (pos < pixel) {
while (cell > 0 && pos < pixel) {
cr_info = sheet_colrow_get_info (sheet, --cell, is_col);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]