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

New commits:
commit d417c6d463b51a796769ed54eacf986b1cf86b86
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Wed Jun 15 22:24:07 2022 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Jun 16 10:26:18 2022 +0200

    Add property name to IllegalArgumentException in 
SvxShape::setPropertyValueImpl
    
    Change-Id: I5e10f2c35568449a99f1972db614199a6336e6b3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135962
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 1f7db69b180d..0ef2f314d19f 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -2539,9 +2539,12 @@ bool SvxShape::setPropertyValueImpl( const OUString&, 
const SfxItemPropertyMapEn
     }
     }
 
-    OUString sExceptionMessage  ("IllegalArgumentException in 
SvxShape::setPropertyValueImpl."
-                                " Property Type: " + 
pProperty->aType.getTypeName() + " Property nWID: " + 
OUString::number(pProperty->nWID)
-                                + " Value Type: " + (rValue.hasValue() ? 
rValue.getValueTypeName() : "void (no value)"));
+    OUString sExceptionMessage(
+        "IllegalArgumentException in SvxShape::setPropertyValueImpl."
+        " Property Type: "
+        + pProperty->aType.getTypeName() + " Property Name: " + 
pProperty->aName
+        + " Property nWID: " + OUString::number(pProperty->nWID)
+        + " Value Type: " + (rValue.hasValue() ? rValue.getValueTypeName() : 
"void (no value)"));
 
     throw lang::IllegalArgumentException(sExceptionMessage, nullptr, 1);
 }

Reply via email to