diff options
author | Michael Brauer <mib@openoffice.org> | 2001-04-18 07:52:32 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-04-18 07:52:32 +0000 |
commit | 4a3927793fb7dd8f752edf8df4959f4cf28e7347 (patch) | |
tree | 4414494a1e1d04dab833132341a27a59bf8e559c /xmloff/source | |
parent | f908d7f479ebd81b01ff1e14cc6e9bca85161039 (diff) |
Don't GPF on wrong numbering level
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/text/XMLTextNumRuleInfo.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xmloff/source/text/XMLTextNumRuleInfo.cxx b/xmloff/source/text/XMLTextNumRuleInfo.cxx index 7bf2869a8f16..e834913e9f3a 100644 --- a/xmloff/source/text/XMLTextNumRuleInfo.cxx +++ b/xmloff/source/text/XMLTextNumRuleInfo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLTextNumRuleInfo.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mib $ $Date: 2000-10-31 09:00:40 $ + * last change: $Author: mib $ $Date: 2001-04-18 08:52:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -160,7 +160,12 @@ void XMLTextNumRuleInfo::Set( } } - DBG_ASSERT( nLevel < xNumRules->getCount(), "wrong num rule level" ); + OSL_ENSURE( nLevel < xNumRules->getCount(), "wrong num rule level" ); + if( nLevel >= xNumRules->getCount() ) + { + Reset(); + return; + } aAny = xNumRules->getByIndex( nLevel ); Sequence<PropertyValue> aProps; |