tdf#115269: fix crash when changing horizontal align (reportdesign)

See bt:
https://bugs.documentfoundation.org/attachment.cgi?id=139403

Regression from
https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=00657aef09d854c74fb426a935a3e8b1fc390bb0

Change-Id: Id23dbbec7dd93a603d906b5d8f7bbf74d14e1d65
Reviewed-on: https://gerrit.libreoffice.org/48765
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet
2018-01-28 10:38:46 +01:00
parent f7c4c6313d
commit 3003c27d87

View File

@@ -1257,7 +1257,7 @@ uno::Any SAL_CALL GeometryHandler::convertToControlValue(const OUString & Proper
sal_Int16 nParagraphAdjust = sal_Int16(style::ParagraphAdjust_LEFT);
aPropertyValue >>= nParagraphAdjust;
if (static_cast<sal_uInt32>(nParagraphAdjust) < SAL_N_ELEMENTS(RID_STR_PARAADJUST_CONST) - 1)
aControlValue <<= RptResId(RID_STR_VERTICAL_ALIGN_CONST[nParagraphAdjust]);
aControlValue <<= RptResId(RID_STR_PARAADJUST_CONST[nParagraphAdjust]);
}
break;
case PROPERTY_ID_BACKCOLOR: