[gnumeric] fix rounding of h_center transformation
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] fix rounding of h_center transformation
- Date: Fri, 21 Oct 2011 05:10:17 +0000 (UTC)
commit 7e9662d2a96140ae821ef46e6475458d76d4d24d
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Thu Oct 20 23:09:46 2011 -0600
fix rounding of h_center transformation
2011-10-20 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/cell-draw.c (cell_draw): fix rounding of h_center
transformation
ChangeLog | 5 +++++
src/cell-draw.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e52932e..c42f9b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-10-20 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * src/cell-draw.c (cell_draw): fix rounding of h_center
+ transformation
+
+2011-10-20 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* src/cell-draw.c (cell_draw): also transform h_center if given
2011-10-20 Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/src/cell-draw.c b/src/cell-draw.c
index 4dae240..3de5e57 100644
--- a/src/cell-draw.c
+++ b/src/cell-draw.c
@@ -316,7 +316,7 @@ cell_draw (GnmCell const *cell, cairo_t *cr,
width -= GNM_COL_MARGIN + GNM_COL_MARGIN + 1;
if (h_center > GNM_COL_MARGIN)
- h_center -= (GNM_COL_MARGIN + 1);
+ h_center = h_center - GNM_COL_MARGIN - 1 + (h_center % 2);
rv = gnm_cell_fetch_rendered_value (cell, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]