From f889f391a1e197368a56ba63297fe221c7d1fde4 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Thu, 13 Feb 2014 13:57:38 +0000 Subject: Guard some Debug output so that it only appears when applicable ('Item::name' is only available when CANVAS_DEBUG is defined) --- libs/canvas/rectangle.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/canvas/rectangle.cc') diff --git a/libs/canvas/rectangle.cc b/libs/canvas/rectangle.cc index d5808b9bb0..4c5304aafd 100644 --- a/libs/canvas/rectangle.cc +++ b/libs/canvas/rectangle.cc @@ -55,7 +55,9 @@ Rectangle::render (Rect const & area, Cairo::RefPtr context) con boost::optional 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; } -- cgit v1.2.3