projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix broken logic and possible NULL pointer dereference for Bundle XML.
[ardour.git]
/
libs
/
canvas
/
ruler.cc
diff --git
a/libs/canvas/ruler.cc
b/libs/canvas/ruler.cc
index 907fc93e99425a17efe712c143430d141610e9b4..b11793cb7fa1d1a524049cfc1ea1f5d3375bdf9e 100644
(file)
--- a/
libs/canvas/ruler.cc
+++ b/
libs/canvas/ruler.cc
@@
-180,3
+180,11
@@
Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
/* done! */
}
+
+void
+Ruler::set_metric (const Metric& m)
+{
+ _metric = &m;
+ _need_marks = true;
+ redraw ();
+}