mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
canvas ruler: use second font description appropriately
This commit is contained in:
parent
148dfdd23c
commit
e3dc0a24f2
1 changed files with 1 additions and 4 deletions
|
|
@ -165,7 +165,7 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
|||
|
||||
for (vector<Mark>::const_iterator m = marks.begin(); m != marks.end(); ++m) {
|
||||
Duple pos;
|
||||
Pango::FontDescription* fd = _font_description;
|
||||
Pango::FontDescription* fd = (m->style == Mark::Major) ? (_second_font_description ? _second_font_description : _font_description) : _font_description;
|
||||
|
||||
pos.x = floor ((m->position - _lower) / _metric->units_per_pixel);
|
||||
pos.y = self.y1; /* bottom edge */
|
||||
|
|
@ -211,9 +211,6 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
|||
} else {
|
||||
cr->rel_line_to (0, -height);
|
||||
}
|
||||
if (_second_font_description) {
|
||||
fd = _second_font_description;
|
||||
}
|
||||
break;
|
||||
case Mark::Minor:
|
||||
cr->rel_line_to (0, -height/3.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue