chart2/source/view/main/DummyXShape.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
New commits: commit ada1e6d83202d34871c6f6c9d2f521be3f0bbda5 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Sun Feb 9 16:38:44 2014 +0100 first step into positioning fixes for legends Change-Id: Id6c83f907c942a48005338090fc01d9d23045548 diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 4ed9622..f701314 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& ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits