[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - svx/source

Muhammet Kara (via logerrit) logerrit at kemper.freedesktop.org
Sat Nov 9 16:14:59 UTC 2019


 svx/source/unodraw/unoshape.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit ab7cdbb1961210ee9b0a6a847878befad8789991
Author:     Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Sat Nov 9 13:28:30 2019 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Sat Nov 9 17:14:04 2019 +0100

    Add some info to the IllegalArgumentException in SvxShape
    
    Change-Id: I31253a0410299ec2f7fbeb8bb981bdc97c66906c
    Reviewed-on: https://gerrit.libreoffice.org/82350
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 4430da8af9c9..29e08997df88 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -2512,7 +2512,12 @@ bool SvxShape::setPropertyValueImpl( const OUString&, const SfxItemPropertySimpl
         return false;
     }
     }
-    throw lang::IllegalArgumentException();
+
+    OUString sExceptionMessage (OUStringLiteral("IllegalArgumentException in SvxShape::setPropertyValueImpl.")
+                                + " Property Type: " + pProperty->aType.getTypeName() + " Property nWID: " + OUString::number(pProperty->nWID)
+                                + " Value Type: " + (rValue.hasValue() ? rValue.getValueTypeName() : "void (no value)"));
+
+    throw lang::IllegalArgumentException(sExceptionMessage, nullptr, 1);
 }
 
 


More information about the Libreoffice-commits mailing list