better code related to prior commit that fixed color setting for ruler markers (loop range)

This commit is contained in:
Paul Davis 2015-01-23 10:51:23 -05:00
parent 55eee170c6
commit 4cb65afe4a

View file

@ -75,6 +75,11 @@ RulerMarker::RulerMarker (ARDOUR::Location* l, PublicEditor& editor, ArdourCanva
/* make sure we call our own color stuff, since we look different */
use_color ();
/* unset the effects of RangeMarker::use_color () called during constructor */
_name_background->set_pattern (Cairo::RefPtr<Cairo::SurfacePattern> ());
}
void
@ -82,10 +87,6 @@ RulerMarker::use_color ()
{
Marker::use_color ();
/* unset the effects of RangeMarker::use_color () called during constructor */
_name_background->set_pattern (Cairo::RefPtr<Cairo::SurfacePattern> ());
if (_end_line) {
_end_line->set_outline_color (_color);
}