[gnumeric] sparse: fix ugly case of missing dereference.



commit a6e7cb81d06f389dbaddceb4c36f943258277e4d
Author: Morten Welinder <terra gnome org>
Date:   Fri Jul 9 22:18:24 2010 -0400

    sparse: fix ugly case of missing dereference.

 src/dialogs/ChangeLog               |    7 ++++++-
 src/dialogs/dialog-stf-fixed-page.c |    2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index fa1f02c..997456c 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,6 +1,11 @@
+2010-07-09  Morten Welinder  <terra gnome org>
+
+	* dialog-stf-fixed-page.c (calc_char_index): add missing
+	dereference.
+
 2010-07-07  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-	* dialog-function-select.c (make_expr_example): use the suggested 
+	* dialog-function-select.c (make_expr_example): use the suggested
 	  format
 
 2010-07-04  Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/src/dialogs/dialog-stf-fixed-page.c b/src/dialogs/dialog-stf-fixed-page.c
index fce01fd..881b77b 100644
--- a/src/dialogs/dialog-stf-fixed-page.c
+++ b/src/dialogs/dialog-stf-fixed-page.c
@@ -96,7 +96,7 @@ calc_char_index (RenderData_t *renderdata, int col, int *dx)
 	pango_font_description_free (font_desc);
 
 	if (width < 1) width = 1;
-	ci = (dx < 0) ? 0 : (*dx + width / 2) / width;
+	ci = (*dx < 0) ? 0 : (*dx + width / 2) / width;
 	*dx -= ci * width;
 
 	return ci;



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