do not double-translate Canvas::Rectangle by _position; item_to_window() already includes it by calling item_to_canvas()
This commit is contained in:
parent
929bb23836
commit
91de7ba60b
|
@ -58,10 +58,8 @@ Rectangle::Rectangle (Item* parent, Rect const & rect)
|
||||||
void
|
void
|
||||||
Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
||||||
{
|
{
|
||||||
/* In general, a Rectangle will have a _position of (0,0) within its
|
/* Note that item_to_window() already takes _position into account (as
|
||||||
parent, and its extent is actually defined by _rect. But in the
|
part of item_to_canvas()
|
||||||
unusual case that _position is set to something other than (0,0),
|
|
||||||
we should take that into account when rendering.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Rect self (item_to_window (_rect, false));
|
Rect self (item_to_window (_rect, false));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user