diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-11-22 18:01:32 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-11-23 11:24:06 +0100 |
commit | a45c82f930c1224928fd0a8f9ca3690ddd162366 (patch) | |
tree | 96e47eb60b06a197403ba17ea5a1cc7752444624 /svx | |
parent | a910204348b032bae1882bf7f74085a0b8c529ca (diff) |
Show some exception message when getting one in RtfFilter
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index e3bfaf308346..b676551cfe82 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -1720,7 +1720,10 @@ void SAL_CALL SvxShape::_setPropertyValue( const OUString& rPropertyName, const throw beans::UnknownPropertyException(); if( (pMap->nFlags & beans::PropertyAttribute::READONLY ) != 0 ) - throw beans::PropertyVetoException(); + throw beans::PropertyVetoException( rtl::OUString::createFromAscii( + OSL_FORMAT( "Readonly property can't be set: %s", + rtl::OUStringToOString( rPropertyName, RTL_TEXTENCODING_UTF8 ).getStr() ) ), + uno::Reference< drawing::XShape >( this ) ); mpModel->SetChanged(); |