[gnumeric] Fix sheet handling in validation setup. [#606458]



commit 59a75d01931006263458d4babd853c91e5d19a93
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Sat Jan 9 13:47:56 2010 -0700

    Fix sheet handling in validation setup. [#606458]
    
    2010-01-09 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* dialog-cell-format.c (cb_fmt_dialog_dialog_buttons): make sure that
    	  the correct sheet is active

 NEWS                             |    1 +
 src/dialogs/ChangeLog            |    5 +++++
 src/dialogs/dialog-cell-format.c |    7 +++++++
 3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 5728147..44ee01d 100644
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,7 @@ Andreas:
 	* Add surface plot description. [#604285]
 	* Include the short functions descriptions in the documentation. 
 	  [#606354]
+	* Fix sheet handling in validation setup. [#606458]
 
 Jean
 	* Fix import export of line type in scatter plots. [#605043]
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 52a335b..4e335d9 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-09 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* dialog-cell-format.c (cb_fmt_dialog_dialog_buttons): make sure that 
+	  the correct sheet is active
+
 2010-01-06 Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* dialog-analysis-tool-kaplan-meier.c (dialog_kaplan_meier_tool): 
diff --git a/src/dialogs/dialog-cell-format.c b/src/dialogs/dialog-cell-format.c
index f8017f6..c1cc5dd 100644
--- a/src/dialogs/dialog-cell-format.c
+++ b/src/dialogs/dialog-cell-format.c
@@ -2266,6 +2266,13 @@ cb_fmt_dialog_dialog_buttons (GtkWidget *btn, FormatState *state)
 		GnmBorder *borders[GNM_STYLE_BORDER_EDGE_MAX];
 		int i;
 
+		/* We need to make sure the right sheet is active */
+		/* since we are acting on the current selection   */
+		/* validation may have switched sheets.           */
+
+		wb_control_sheet_focus (WORKBOOK_CONTROL (state->wbcg), 
+					state->sheet);
+
 		if (state->validation.changed)
 			validation_rebuild_validation (state);
 



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