[Libreoffice-commits] core.git: chart2/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon Feb 10 00:36:20 PST 2014
chart2/source/view/main/DummyXShape.cxx | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
New commits:
commit ada1e6d83202d34871c6f6c9d2f521be3f0bbda5
Author: Markus Mohrhard <markus.mohrhard at 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& )
More information about the Libreoffice-commits
mailing list