Let AxisView::set_gui_property perform type conversion in TimeAxisView::set_height
authorTim Mayberry <mojofunk@gmail.com>
Tue, 30 Aug 2016 09:59:49 +0000 (19:59 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:57 +0000 (09:36 +1000)
gtk2_ardour/time_axis_view.cc

index 67e487f648462601876ebb61cc8667aea4a867e7..3e3f5e26cac10ea80b77fdefd610980d1a588970 100644 (file)
@@ -590,9 +590,7 @@ TimeAxisView::set_height (uint32_t h, TrackHeightMode m)
        TOP_LEVEL_WIDGET.property_height_request () = h;
        height = h;
 
-       char buf[32];
-       snprintf (buf, sizeof (buf), "%u", height);
-       set_gui_property ("height", buf);
+       set_gui_property ("height", height);
 
        for (list<GhostRegion*>::iterator i = ghosts.begin(); i != ghosts.end(); ++i) {
                (*i)->set_height ();