From ada1e6d83202d34871c6f6c9d2f521be3f0bbda5 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 9 Feb 2014 16:38:44 +0100 Subject: first step into positioning fixes for legends Change-Id: Id6c83f907c942a48005338090fc01d9d23045548 --- chart2/source/view/main/DummyXShape.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'chart2/source') diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 4ed9622617b5..f7013142d57d 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -860,10 +860,16 @@ awt::Size DummyGroup2D::getSize() return awt::Size(nRight - nLeft, nBottom - nTop); } -void DummyGroup2D::setPosition( const awt::Point& ) +void DummyGroup2D::setPosition( const awt::Point& rPos ) throw(uno::RuntimeException) { - SAL_WARN("chart2.opengl", "set position on group shape"); + for(std::vector::const_iterator itr = maShapes.begin(), + itrEnd = maShapes.end(); itr != itrEnd; ++itr) + { + awt::Point aPos = (*itr)->getPosition(); + awt::Point aNewPos( rPos.X + aPos.X, rPos.Y + aPos.Y); + (*itr)->setPosition(aNewPos); + } } void DummyGroup2D::setSize( const awt::Size& ) -- cgit