[goffice] Fix #698101 and #698102.



commit feea0532736af022be8b44501db2cdccb1027e22
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Apr 16 10:32:52 2013 +0200

    Fix #698101 and #698102.

 ChangeLog                 | 6 ++++++
 NEWS                      | 2 ++
 goffice/canvas/goc-item.c | 2 +-
 goffice/utils/go-editor.c | 1 +
 4 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index 87f2ed8..1cd0626 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-16  Jean Brefort  <jean brefort normalesup org>
+
+       * goffice/canvas/goc-item.c (goc_item_set_transform): fix test. [#698101]
+       * goffice/utils/go-editor.c (go_editor_new): initialize
+       GOEditor::use_scrolled. [#698102]
+
 2013-04-15  Jean Brefort  <jean brefort normalesup org>
 
        * plugins/plot_xy/gog-xy.c (gog_xy_view_render): fixed style in scatter plot
diff --git a/NEWS b/NEWS
index ba1355c..370f404 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,8 @@ Jean:
        * Show the font face selector in the graph properties. [#697243]
        * Fixed style in scatter plot after a valid but with invisible line
        series. [#698057]
+       * Fixed test in goc_item_set_transform(). [#698101]
+       * Iinitialize GOEditor::use_scrolled. [#698102]
 
 Morten:
        * Fix problems with cspline boxed type. [#695550]
diff --git a/goffice/canvas/goc-item.c b/goffice/canvas/goc-item.c
index 0bb3c06..acff12d 100644
--- a/goffice/canvas/goc-item.c
+++ b/goffice/canvas/goc-item.c
@@ -810,7 +810,7 @@ goc_item_set_transform (GocItem *item, cairo_matrix_t *m)
                                                || fabs (m->yx) > matrix_epsilon
                                                || fabs (m->yy - 1.) > matrix_epsilon
                                                || fabs (m->x0) > matrix_epsilon
-                                               || fabs (m->x0) > matrix_epsilon;
+                                               || fabs (m->y0) > matrix_epsilon;
        if (item->transformed)
                item->transform = *m;
        else
diff --git a/goffice/utils/go-editor.c b/goffice/utils/go-editor.c
index 423e6c6..0d24770 100644
--- a/goffice/utils/go-editor.c
+++ b/goffice/utils/go-editor.c
@@ -62,6 +62,7 @@ go_editor_new (void)
        editor->pages = NULL;
        g_datalist_init (&editor->registered_widgets);
        editor->ref_count = 1;
+       editor->use_scrolled = FALSE;
 
        return editor;
 }


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