#95 GTKPlotData bug

closed-fixed
None
5
2012-06-05
2011-12-04
RRaptor
No

In gtkplotdata.c need replace dimention name from "ErrZ" to "dz" in two functions, because "ErrZ" is description for dimention and cannot be use for
gtk_plot_data_find_dimension, gtk_plot_data_dimension_set_points, gtk_plot_data_get_dz, gtk_plot_data_dimension_get_array. Patched functions is done:

GtkPlotArray *
gtk_plot_data_set_dz(GtkPlotData *data,
gdouble *dz)
{
GtkPlotArray *array;
// rraptor edited
// array = gtk_plot_data_dimension_set_points(data, "ErrZ", dz);
array = gtk_plot_data_dimension_set_points(data, "dz", dz);
return array;
}

gdouble *
gtk_plot_data_get_dz(GtkPlotData *dataset, gint *num_points)
{
GtkPlotArray *array;
// rraptor edited
// array = gtk_plot_data_dimension_get_array(dataset, "ErrZ");
array = gtk_plot_data_dimension_get_array(dataset, "dz");
if(array){
*num_points = gtk_plot_array_get_size(array);
return gtk_plot_array_get_double(array);
}
return NULL;
}

Discussion

  • Fredy Paquet

    Fredy Paquet - 2012-06-03
    • assigned_to: nobody --> fpaquet
    • status: open --> pending-accepted
     
  • Fredy Paquet

    Fredy Paquet - 2012-06-03

    Hello rraptor

    Thank you for the patch.
    I've incorporated it into the gtkextra-3 branch (CVS) today.

    fp

     
  • Fredy Paquet

    Fredy Paquet - 2012-06-03
    • assigned_to: fpaquet --> roy_r_rankin
     
  • Fredy Paquet

    Fredy Paquet - 2012-06-03

    @roy - could you check this with the gtkextra-2 branch ?

     
  • Roy Rankin

    Roy Rankin - 2012-06-05
    • status: pending-accepted --> closed-fixed
     
  • Roy Rankin

    Roy Rankin - 2012-06-05

    patch applied to gtkextra-2 branch

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks