From 3003c27d87c6ad47ed9cadb1f574882c530522b1 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 28 Jan 2018 10:38:46 +0100 Subject: [PATCH] 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 Reviewed-by: Julien Nabet --- reportdesign/source/ui/inspection/GeometryHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx index d849d6e99791..70f08c27a500 100644 --- a/reportdesign/source/ui/inspection/GeometryHandler.cxx +++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx @@ -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(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: