[goffice] Don't move any other axis when changing an axis position. [#669050]



commit 1116d0fe2225ba29cae8782d978cac4a87ab6891
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Feb 12 09:06:34 2012 +0100

    Don't move any other axis when changing an axis position. [#669050]

 ChangeLog                     |    5 +++++
 NEWS                          |    1 +
 goffice/graph/gog-axis-line.c |   18 ------------------
 3 files changed, 6 insertions(+), 18 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index beed693..67ce506 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-12  Jean Brefort  <jean brefort normalesup org>
+
+	* goffice/graph/gog-axis-line.c (cb_position_toggled): don't move any other
+	axis when changing an axis position. [#669050]
+
 2012-02-10  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/graph/gog-reg-curve-prefs.ui: add limits to the regression curve
diff --git a/NEWS b/NEWS
index ce0fef2..41466b6 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ Jean:
 	* Fix bounds for partial range logarithmic axes. [#669257]
 	* Fix Y-axis label position. [#669325]
 	* Add limits to the regression curve display range. [#669252]
+	* Don't move any other axis when changing an axis position. [#669050]
 
 Morten:
 	* Embed library ui files into library.
diff --git a/goffice/graph/gog-axis-line.c b/goffice/graph/gog-axis-line.c
index d4b23a5..5a0b7ec 100644
--- a/goffice/graph/gog-axis-line.c
+++ b/goffice/graph/gog-axis-line.c
@@ -435,24 +435,6 @@ cb_position_toggled (GtkWidget *button, AxisBasePrefs *state)
 		gtk_widget_set_sensitive (go_gtk_builder_get_widget (state->gui, "padding-spinbutton"),
 					  position != GOG_AXIS_CROSS);
 
-	if (position != GOG_AXIS_CROSS) {
-		axes = gog_chart_get_axes (axis_base->chart, gog_axis_get_atype (axis_base->axis));
-		for (aptr = axes; aptr != NULL; aptr = aptr->next) {
-			lines = gog_object_get_children (GOG_OBJECT (aptr->data), NULL);
-			lines = g_slist_prepend (lines, aptr->data);
-			for (lptr = lines; lptr != NULL; lptr = lptr->next) {
-				if (lptr->data == axis_base || !GOG_IS_AXIS_BASE (lptr->data))
-					continue;
-				if (position == gog_axis_base_get_position (GOG_AXIS_BASE (lptr->data))) {
-					gog_axis_base_set_position (GOG_AXIS_BASE (lptr->data),
-								    gog_axis_base_get_position (axis_base));
-					break;
-				}
-			}
-			g_slist_free (lines);
-		}
-		g_slist_free (axes);
-	}
 	gog_axis_base_set_position (axis_base, position);
 	gog_object_emit_changed (GOG_OBJECT (axis_base), TRUE);
 }



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