13
0

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:
John Emmas 2014-02-13 13:57:38 +00:00
parent f5499d206a
commit f889f391a1

View File

@ -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;
}