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
|
@ -55,7 +55,9 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
|
|||
boost::optional<Rect> r = self.intersection (area);
|
||||
|
||||
if (!r) {
|
||||
#ifdef CANVAS_DEBUG
|
||||
std::cerr << whatami() << '/' << name << " not covered by render area! ... " << self << " vs. " << area << std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user