[goffice] GogLabel: add a note to the kludge.



commit 557bc5f366def0ed435d66166888f81606b51db3
Author: Morten Welinder <terra gnome org>
Date:   Mon Jan 26 10:11:55 2015 -0500

    GogLabel: add a note to the kludge.

 goffice/graph/gog-label.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/goffice/graph/gog-label.c b/goffice/graph/gog-label.c
index 85515d4..b2e8f56 100644
--- a/goffice/graph/gog-label.c
+++ b/goffice/graph/gog-label.c
@@ -117,6 +117,12 @@ gog_text_init_style (GogStyledObject *gso, GOStyle *style)
        /* Kludge for default Y axis title orientation. This should have be done
         * in GogTheme, but it's not possible without breaking graph persistence
         * compatibility */
+
+       /*
+        * Note: if you create the axis object by hand, this will only be called
+        * when the object is given a role.  Your carefully computed angle will
+        * be wiped out at that time.  (As any other style.)
+        */
        parent = gog_object_get_parent (GOG_OBJECT (gso));
        if (GOG_IS_AXIS (parent)) {
                GogChart *chart = GOG_CHART (gog_object_get_parent (parent));


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