mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 12:46:32 +01:00
Guard some Debug output so that it only appears when applicable ('Item::name' is only available when CANVAS_DEBUG is defined)
This commit is contained in:
parent
f5499d206a
commit
f889f391a1
1 changed files with 2 additions and 0 deletions
|
|
@ -55,7 +55,9 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
|
||||||
boost::optional<Rect> r = self.intersection (area);
|
boost::optional<Rect> r = self.intersection (area);
|
||||||
|
|
||||||
if (!r) {
|
if (!r) {
|
||||||
|
#ifdef CANVAS_DEBUG
|
||||||
std::cerr << whatami() << '/' << name << " not covered by render area! ... " << self << " vs. " << area << std::endl;
|
std::cerr << whatami() << '/' << name << " not covered by render area! ... " << self << " vs. " << area << std::endl;
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue