diff options
Diffstat (limited to 'forms/source/component/Numeric.cxx')
-rw-r--r-- | forms/source/component/Numeric.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/forms/source/component/Numeric.cxx b/forms/source/component/Numeric.cxx index 3b14db388bdc..9041920753d5 100644 --- a/forms/source/component/Numeric.cxx +++ b/forms/source/component/Numeric.cxx @@ -110,7 +110,10 @@ css::uno::Sequence<OUString> ONumericModel::getSupportedServiceNames() void ONumericModel::describeFixedProperties( Sequence< Property >& _rProps ) const { - BEGIN_DESCRIBE_PROPERTIES( 2, OEditBaseModel ) + OEditBaseModel::describeFixedProperties( _rProps ); + sal_Int32 nOldCount = _rProps.getLength(); + _rProps.realloc( nOldCount + 2); + css::beans::Property* pProperties = _rProps.getArray() + nOldCount; DECL_PROP_IMPL(DEFAULT_VALUE, double) css::beans::PropertyAttribute::BOUND | css::beans::PropertyAttribute::MAYBEDEFAULT | css::beans::PropertyAttribute::MAYBEVOID); DECL_PROP1(TABINDEX, sal_Int16, BOUND); DBG_ASSERT( pProperties == _rProps.getArray() + _rProps.getLength(), "<...>::describeFixedProperties/getInfoHelper: forgot to adjust the count ?"); |