diff options
author | John Emmas <johne53@tiscali.co.uk> | 2014-02-13 13:57:38 +0000 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2014-02-13 14:12:36 +0000 |
commit | f889f391a1e197368a56ba63297fe221c7d1fde4 (patch) | |
tree | e5ae526463afdde23e2951af38a264171971bdf7 /libs/canvas/rectangle.cc | |
parent | f5499d206a8b77340e5466fadfd2d087eb9cd67e (diff) |
Guard some Debug output so that it only appears when applicable ('Item::name' is only available when CANVAS_DEBUG is defined)
Diffstat (limited to 'libs/canvas/rectangle.cc')
-rw-r--r-- | libs/canvas/rectangle.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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<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; } |