From d1a05240efc9816b4358cdeab458a54048abf9be Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 17 Apr 2013 10:53:17 -0400 Subject: fix clamping of line and rect coordinates to avoid issues with cairo when drawing way outside a surface's dimensions; move various coordinate methods down to Canvas, because they don't require GTK information; make visible_area() a Canvas virtual method so that we don't have to cast to call it --- libs/canvas/item.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/canvas/item.cc') diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index da551fade6..f5aa39d20d 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -370,7 +370,7 @@ Item::dump (ostream& o) const { boost::optional bb = bounding_box(); - o << _canvas->indent() << whatami() << ' ' << this; + o << _canvas->indent() << whatami() << ' ' << this << " Visible ? " << _visible; o << " @ " << position(); #ifdef CANVAS_DEBUG -- cgit v1.2.3