Fix some bugs I introduced with the last commit.
[ardour.git] / gtk2_ardour / editor_group_tabs.cc
index ba94b16dd4213e08fb6c20841d3f81fefd519a91..352eec88ccbe886ae5780fd27dd5ebcb50930784 100644 (file)
@@ -17,6 +17,8 @@
 
 */
 
+#include "gtkmm2ext/utils.h"
+
 #include "ardour/route_group.h"
 #include "editor_group_tabs.h"
 #include "editor.h"
@@ -96,7 +98,7 @@ EditorGroupTabs::draw_tab (cairo_t* cr, Tab const & tab) const
        cairo_fill (cr);
 
        if (tab.group) {
-               pair<string, double> const f = fit_to_pixels (cr, tab.group->name(), tab.to - tab.from - arc_radius * 2);
+               pair<string, double> const f = Gtkmm2ext::fit_to_pixels (cr, tab.group->name(), tab.to - tab.from - arc_radius * 2);
 
                cairo_text_extents_t ext;
                cairo_text_extents (cr, tab.group->name().c_str(), &ext);