diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-08-30 19:59:49 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:57 +1000 |
commit | 7fdbabcd79e2521787eaf200418edc40ffd5fe84 (patch) | |
tree | 974fbc2e2c85a2976e210c517cbf35c354ab79b0 /gtk2_ardour/time_axis_view.cc | |
parent | 6e467153a087497a21c8a584820da00241bc42cf (diff) |
Let AxisView::set_gui_property perform type conversion in TimeAxisView::set_height
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index 67e487f648..3e3f5e26ca 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -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 (); |