summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/gridcolumnproptranslator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/forms/gridcolumnproptranslator.cxx')
-rw-r--r--xmloff/source/forms/gridcolumnproptranslator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/forms/gridcolumnproptranslator.cxx b/xmloff/source/forms/gridcolumnproptranslator.cxx
index aeb1de438815..b10357b84c26 100644
--- a/xmloff/source/forms/gridcolumnproptranslator.cxx
+++ b/xmloff/source/forms/gridcolumnproptranslator.cxx
@@ -254,6 +254,9 @@ namespace xmloff
sal_Int32 nParaAlignPos = findStringElement( aTranslatedNames, getParaAlignProperty() );
if ( nParaAlignPos != -1 )
{
+ if (aTranslatedNames.getLength() != aTranslatedValues.getLength())
+ throw css::lang::IllegalArgumentException(
+ "lengths do not match", static_cast<cppu::OWeakObject*>(this), -1);
aTranslatedNames.getArray()[ nParaAlignPos ] = getAlignProperty();
valueParaAdjustToAlign( aTranslatedValues.getArray()[ nParaAlignPos ] );
}