Guard some Debug output so that it only appears when applicable ('Item::name' is...
authorJohn Emmas <johne53@tiscali.co.uk>
Thu, 13 Feb 2014 13:57:38 +0000 (13:57 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Thu, 13 Feb 2014 14:12:36 +0000 (14:12 +0000)
libs/canvas/rectangle.cc

index d5808b9bb0e26cce35d934ed2a109c6cb5ee6884..4c5304aafd4f5925922054aad6d10a3ee4387195 100644 (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;
        }