diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-29 06:13:37 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:23 +0100 |
commit | 594554feabd89545c7833aaf524e48c10515aae6 (patch) | |
tree | 190fe5a808dbca165e4c7dfdb425ab26881f2ea1 /chart2 | |
parent | bd692cb0f2a2d0af46b123df2fe1a5c50d491ffc (diff) |
add one more implementation for properties
Change-Id: Ib2aeb9fcffc5c967006a754214ced6e7ab8d012a
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 5a3460a49758..8890d55ac65b 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -128,11 +128,16 @@ void DummyXShape::removeVetoableChangeListener( const OUString&, const uno::Refe { } -void DummyXShape::setPropertyValues( const uno::Sequence< OUString >& , - const uno::Sequence< uno::Any >& ) +void DummyXShape::setPropertyValues( const uno::Sequence< OUString >& rNames, + const uno::Sequence< uno::Any >& rValues) throw (beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) { + size_t n = std::min<size_t>(rNames.getLength(), rValues.getLength()); + for(size_t i = 0; i < n; ++i) + { + maProperties[rNames[i]] = rValues[i]; + } } uno::Sequence< uno::Any > DummyXShape::getPropertyValues( |