diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-09 16:38:44 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-10 09:35:55 +0100 |
commit | ada1e6d83202d34871c6f6c9d2f521be3f0bbda5 (patch) | |
tree | 8a4d0d8e781f37a56ea2db79085cafd7ab91d2ed /chart2/source | |
parent | 8d81fb07a117cf366f1db60db8b33e25ecb4a570 (diff) |
first step into positioning fixes for legends
Change-Id: Id6c83f907c942a48005338090fc01d9d23045548
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
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<DummyXShape*>::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& ) |