summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-12-03 23:18:55 +0100
committerMichael Stahl <mstahl@redhat.com>2012-12-04 00:57:46 +0100
commit3d9bb8e82548b8cf35771d044c0175f6a7e8ccdb (patch)
tree267cdbf8e81a351ce924cfc2114eea0af17ae1c1 /svl
parentfa4d109a77f5fdbae6be51138402a35b5e551dc1 (diff)
SwXStyle::getPropertyDefaults: handle non-itemset based properties:
These do not occur in ItemSets and thus cause fxItemPropertySet::getPropertyValue to throw. This caused sw_unoapi test to fail in sw.CharacterStyle on the property "Hidden" that was added in d9ef61fb546af443736057557552e3a95c569c11. Change-Id: I5b7b5b366120470a0f7d64b9b109b5c84c52b515
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itemprop.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx
index 7dd5bbe1c98c..b9a4cc6a4918 100644
--- a/svl/source/items/itemprop.cxx
+++ b/svl/source/items/itemprop.cxx
@@ -203,7 +203,8 @@ void SfxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry& rEn
rItem.QueryValue( rAny, rEntry.nMemberId );
}
else if(0 == (rEntry.nFlags & PropertyAttribute::MAYBEVOID))
- throw RuntimeException();
+ throw RuntimeException(
+ "Property not found in ItemSet but not MAYBEVOID?", 0);
}