[gnumeric] Fix row height dialog. [#625543]



commit 5a573994719e62d11345633655b57a7e773329b5
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Jul 28 23:19:26 2010 -0600

    Fix row height dialog. [#625543]
    
    2010-07-28  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* dialog-row-height.c (dialog_row_height): make sure the spin
    	  box is at least 1, since 0 stands for "default".

 NEWS                            |    1 +
 src/dialogs/ChangeLog           |    5 +++++
 src/dialogs/dialog-row-height.c |    2 +-
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 3a0b786..a2c8577 100644
--- a/NEWS
+++ b/NEWS
@@ -55,6 +55,7 @@ Andreas:
 	  Part of [#405951]
 	* Improve xl import of underlines.
 	* Correctly size the autoexpressions. [#625521]
+	* Fix row height dialog. [#625543]
 
 Jean:
 	* Fix strong/weak cursor display. [#623241]
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 08578b0..490e297 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-29  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* dialog-row-height.c (dialog_row_height): make sure the spin 
+	  box is at least 1, since 0 stands for "default".
+
 2010-07-29  Morten Welinder  <terra gnome org>
 
 	* dialog-stf-fixed-page.c (cb_treeview_expose): Draw using cairo.
diff --git a/src/dialogs/dialog-row-height.c b/src/dialogs/dialog-row-height.c
index c3df547..d3f74d8 100644
--- a/src/dialogs/dialog-row-height.c
+++ b/src/dialogs/dialog-row-height.c
@@ -267,7 +267,7 @@ dialog_row_height (WBCGtk *wbcg, gboolean use_default)
 
 	state->spin  = GTK_SPIN_BUTTON (glade_xml_get_widget (state->gui, "spin"));
 	gtk_spin_button_get_adjustment (state->spin)->lower =
-		GNM_ROW_MARGIN + GNM_ROW_MARGIN;
+		GNM_ROW_MARGIN + GNM_ROW_MARGIN + 1;
 	g_signal_connect (G_OBJECT (state->spin),
 		"value-changed",
 		G_CALLBACK (cb_dialog_row_height_value_changed), state);



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