[gnumeric] 2009-07-22 Jody Goldberg <jody gnome org>



commit 5b75cb50ce1c8b2f8c22c5333c0141b92cbac086
Author: Jody Goldberg <jody gnome org>
Date:   Wed Jul 22 15:29:10 2009 -0400

    2009-07-22  Jody Goldberg <jody gnome org>
    
    	* src/colrow.c (colrow_compute_pts_from_pixels) : seems like the
    	  intent was to use -1 as a proxy for a call to colrow_compute_pixel_scale.
    	  This fixes the negatively sized cols/rows since b2c73a3e. [#588297]

 ChangeLog    |    6 ++++++
 NEWS         |    3 +++
 src/colrow.c |    3 +++
 3 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 57ae3bb..26db0d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-22  Jody Goldberg <jody gnome org>
+
+	* src/colrow.c (colrow_compute_pts_from_pixels) : seems like the
+	  intent was to use -1 as a proxy for a call to colrow_compute_pixel_scale.
+	  This fixes the negatively sized cols/rows since b2c73a3e. [#588297]
+
 2009-07-09 Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* src/sheet-object.h (sheet_object_anchor_to_offset_pts): new
diff --git a/NEWS b/NEWS
index b8aec09..677e750 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,9 @@ Andreas:
 	* Add some sheet object support to ODF export.
 	* Export basic charts to ODF.
 
+Jody:
+	* Fix col/row resize. [#588297]
+
 Morten:
 	* Make SUMIF/COUNTIF and the D* functions understand pattern. [#586215]
 	* Make dialogs remember their sizes and positions.
diff --git a/src/colrow.c b/src/colrow.c
index 8b1148b..917d074 100644
--- a/src/colrow.c
+++ b/src/colrow.c
@@ -64,6 +64,9 @@ void
 colrow_compute_pts_from_pixels (ColRowInfo *cri, Sheet const *sheet,
 				gboolean horizontal, double scale)
 {
+	if (scale <= 0.)
+		scale = colrow_compute_pixel_scale (sheet, horizontal);
+
 	if (horizontal && sheet->display_formulas)
 		scale *= 2;
 



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