[goffice] Math: fix problems with cspline boxed type.



commit 01f93869b7e2e9b38bd62c94d9d71103dffa4f08
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 10 16:18:01 2013 -0400

    Math: fix problems with cspline boxed type.

 ChangeLog                 |    3 +++
 NEWS                      |    3 +++
 goffice/math/go-cspline.c |    8 ++++----
 3 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d172364..7a7a11f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-03-10  Morten Welinder  <terra gnome org>
 
+       * goffice/math/go-cspline.c (go_csplinel_get_type): Fix reversed
+       conditionals.
+
        * goffice/app/file.c (GOFileOpener): Add property getters and
        setters.  Add interactive property.
        * goffice/app/file.c (GOFileSaver): Add interactive property.
diff --git a/NEWS b/NEWS
index 546a838..13b6d3f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 goffice 0.10.2:
 
+Morten:
+       * Fix problems with cspline boxed type. [#695550]
+
 --------------------------------------------------------------------------
 goffice 0.10.1:
 
diff --git a/goffice/math/go-cspline.c b/goffice/math/go-cspline.c
index a3d0991..d321847 100644
--- a/goffice/math/go-cspline.c
+++ b/goffice/math/go-cspline.c
@@ -229,9 +229,9 @@ SUFFIX(go_cspline_ref) (GOCSpline *sp)
 
 GType
 #ifdef LONG_DOUBLE
-go_cspline_get_type (void)
-#else
 go_csplinel_get_type (void)
+#else
+go_cspline_get_type (void)
 #endif
 {
        static GType t = 0;
@@ -239,9 +239,9 @@ go_csplinel_get_type (void)
        if (t == 0) {
                t = g_boxed_type_register_static (
 #ifdef LONG_DOUBLE
-                    "GOCSpline",
-#else
                     "GOCSplinel",
+#else
+                    "GOCSpline",
 #endif
                         (GBoxedCopyFunc)SUFFIX(go_cspline_ref),
                         (GBoxedFreeFunc)SUFFIX(go_cspline_destroy));


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