summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-13 13:16:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-13 13:16:38 +0100
commit1b5ca93dad3cf9b09af17412ab1562c3b88d0057 (patch)
treee12aa9d20ca190b813f5cf5c49d5a5fbd356edef /unotools
parent2919c5b9b217834497a401624ceb4c3cb90cfb64 (diff)
handle missing values gracefully
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/localisationoptions.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/unotools/source/config/localisationoptions.cxx b/unotools/source/config/localisationoptions.cxx
index a8f1bf826a..3afc667df5 100644
--- a/unotools/source/config/localisationoptions.cxx
+++ b/unotools/source/config/localisationoptions.cxx
@@ -194,13 +194,12 @@ SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()
// Follow assignment use order of values in relation to our list of key names!
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()\nI miss some values of configuration keys!\n" );
- // Copy values from list in right order to ouer internal member.
+ // Copy values from list in right order to our internal member.
sal_Int32 nPropertyCount = seqValues.getLength();
for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
- // Safe impossible cases.
- // Check any for valid value.
- DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()\nInvalid property value detected!\n" );
+ if (!seqValues[nProperty].hasValue())
+ continue;
switch( nProperty )
{
case PROPERTYHANDLE_AUTOMNEMONIC : {