diff options
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/misc/limitedformats.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/forms/source/misc/limitedformats.cxx b/forms/source/misc/limitedformats.cxx index 628a42c55892..e14a2e5146ab 100644 --- a/forms/source/misc/limitedformats.cxx +++ b/forms/source/misc/limitedformats.cxx @@ -280,6 +280,7 @@ namespace frm _rConvertedValue.clear(); _rOldValue <<= pFormats[nOldEnumValue].nKey; + bool bModified = false; bool bFoundIt = false; // look for the entry with the given format key @@ -296,12 +297,6 @@ namespace frm ++nTablePosition; } - if (!_rOldValue.hasValue()) - { // did not reach the end of the table (means we found nNewFormat) - // -> go to the end to ensure that _rOldValue is set - _rOldValue <<= pFormats[nOldEnumValue].nKey; - } - OSL_ENSURE(_rOldValue.hasValue(), "OLimitedFormats::convertFormatKeyPropertyValue: did not find the old enum value in the table!"); if (!bFoundIt) |