~ubuntu-branches/ubuntu/saucy/goffice/saucy-proposed

« back to all changes in this revision

Viewing changes to plugins/plot_surface/gog-xyz.c

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-08-30 14:03:56 UTC
  • mfrom: (1.2.35)
  • Revision ID: package-import@ubuntu.com-20130830140356-a1e30nbdku8kg4q0
Tags: 0.10.6-1
* New upstream release [August 2013].
* Dropped backported "pixbuf-fixes.patch".

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        if (plot->series == NULL)
78
78
                return;
79
79
 
 
80
        g_free (xyz->plotted_data);
80
81
        xyz->plotted_data = gog_xyz_plot_build_matrix (xyz, &cardinality_changed);
81
82
        if (cardinality_changed) {
82
83
                /*      gog_plot_request_cardinality_update can't be called from here
122
123
                        vals = g_new (double, imax);
123
124
                        for (i = 0; i < imax; ++i)
124
125
                                vals[i] = plot->x.minima + i * inc;
125
 
                        plot->x_vals = GO_DATA (go_data_vector_val_new (vals, imax, NULL));
 
126
                        plot->x_vals = GO_DATA (go_data_vector_val_new (vals, imax, g_free));
126
127
                }
127
128
                return plot->x_vals;
128
129
        } else {
146
147
                        vals = g_new (double, imax);
147
148
                        for (i = 0; i < imax; ++i)
148
149
                                vals[i] = plot->y.minima + i * inc;
149
 
                        plot->y_vals = GO_DATA (go_data_vector_val_new (vals, imax, NULL));
 
150
                        plot->y_vals = GO_DATA (go_data_vector_val_new (vals, imax, g_free));
150
151
                }
151
152
                return plot->y_vals;
152
153
        } else {