chart2/source/view/main/DummyXShape.cxx |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 18b1f7ad28b6b820849ee9be4313149df95186d2
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Sun Dec 29 06:13:37 2013 +0100

    add one more implementation for properties
    
    Change-Id: Ib2aeb9fcffc5c967006a754214ced6e7ab8d012a

diff --git a/chart2/source/view/main/DummyXShape.cxx 
b/chart2/source/view/main/DummyXShape.cxx
index 08d18c7..2cc893d 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -127,11 +127,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(
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to