mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 00:17:49 +01:00
better code related to prior commit that fixed color setting for ruler markers (loop range)
This commit is contained in:
parent
55eee170c6
commit
4cb65afe4a
1 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue