Fix some issues reported y valgrind

This commit is contained in:
heckflosse
2017-06-22 23:46:16 +02:00
parent 41d3179f2c
commit 2579e3f6ac
8 changed files with 6 additions and 134 deletions

View File

@@ -42,13 +42,9 @@ void Axis::setValues(Glib::ustring label, unsigned int decimal, double increment
CoordinateAdjuster::AxisAdjuster::AxisAdjuster(CoordinateAdjuster *parent, const Axis *axis, char index) : idx(index), parent(parent), rangeLowerBound(0.f), rangeUpperBound(0.f)
{
label = Gtk::manage( new Gtk::Label(axis->label) );
spinButton = Gtk::manage( new Gtk::SpinButton() );
label = Gtk::manage (new Gtk::Label(axis->label));
//label->set_alignment(Gtk::ALIGN_MIDDLE, Gtk::ALIGN_MIDDLE);
spinButton = Gtk::manage (new Gtk::SpinButton());
label = Gtk::manage(new Gtk::Label(axis->label));
spinButton = Gtk::manage(new Gtk::SpinButton());
spinButton->set_name("AxisAdjuster");
spinButton->set_digits(axis->decimal);
spinButton->set_increments(axis->increment, axis->pageIncrement);