From 1ba9658885ca64308d091c7d04a7d004addc239f Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Tue, 15 Jul 2008 06:11:52 +0000 Subject: [PATCH] Add some debug for Marker's font settings, and set the Text's font before setting it's text git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3609 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/marker.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc index e654461899..98a2d76dd6 100644 --- a/gtk2_ardour/marker.cc +++ b/gtk2_ardour/marker.cc @@ -34,6 +34,7 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con : editor (ed), _parent(&parent), _type(type) { + cerr << "Marker() constructed";//DEBUG double label_offset = 0; bool annotate_left = false; @@ -243,10 +244,10 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con mark->property_outline_color_rgba() = rgba; mark->property_width_pixels() = 1; Pango::FontDescription* font = get_font_for_style (N_("MarkerText")); - + cerr << " font->get_size() = " << font->get_size() << " family = " << font->get_family() << endl; text = new Text (*group); - text->property_text() = annotation.c_str(); text->property_font_desc() = *font; + text->property_text() = annotation.c_str(); delete font;