[Libreoffice-commits] core.git: svx/source

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Tue Nov 21 13:27:29 UTC 2017


 svx/source/unodraw/unoshape.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 0246bfaf132a275e10367a188a0f79549bdf69e4
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Fri Nov 17 10:45:19 2017 +0100

    UNO: Emit warning when trying to set an unknown property
    
    Change-Id: I51afd43c1fd52c7be521f8884dd41cecde312981
    Reviewed-on: https://gerrit.libreoffice.org/44872
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index ed19d6b359bf..ec0cd05601e0 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -1616,7 +1616,10 @@ void SAL_CALL SvxShape::_setPropertyValue( const OUString& rPropertyName, const
     }
 
     if (!pMap)
+    {
+        SAL_WARN("svx.uno", "Unknown Property: " << rPropertyName);
         throw beans::UnknownPropertyException( rPropertyName, static_cast<cppu::OWeakObject*>(this));
+    }
 
     if ((pMap->nFlags & beans::PropertyAttribute::READONLY) != 0)
         throw beans::PropertyVetoException(


More information about the Libreoffice-commits mailing list