diff options
author | Balazs Varga <balazs.varga991@gmail.com> | 2020-07-09 11:08:38 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-07-15 18:01:31 +0200 |
commit | 9eb614f8d2d9cc983c51bcdde211ee0c59c3a96c (patch) | |
tree | 58286b2c0c7a6c9d1d2ad439efd75535d458c567 /chart2 | |
parent | 6d1e9482cf1519e5b4d73331a5bcdfbbc9a15776 (diff) |
tdf#134659 chart2: use centered label alignment at text break
instead of left for axis labels broken into several lines.
Change-Id: Iaf516055748189fa50165f0e954dfe0db15bbfb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98413
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/PropertyMapper.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/view/main/PropertyMapper.cxx b/chart2/source/view/main/PropertyMapper.cxx index c062eb2b451a..0550cdd5ce11 100644 --- a/chart2/source/view/main/PropertyMapper.cxx +++ b/chart2/source/view/main/PropertyMapper.cxx @@ -25,6 +25,7 @@ #include <com/sun/star/drawing/TextVerticalAdjust.hpp> #include <com/sun/star/drawing/TextHorizontalAdjust.hpp> #include <com/sun/star/drawing/LineJoint.hpp> +#include <com/sun/star/style/ParagraphAdjust.hpp> #include <comphelper/sequence.hxx> #include <tools/diagnose_ex.h> @@ -457,6 +458,7 @@ void PropertyMapper::getTextLabelMultiPropertyLists( aValueMap.emplace( "TextVerticalAdjust", uno::Any(drawing::TextVerticalAdjust_CENTER) ); //drawing::TextVerticalAdjust - needs to be overwritten aValueMap.emplace( "TextAutoGrowHeight", uno::Any(true) ); // sal_Bool aValueMap.emplace( "TextAutoGrowWidth", uno::Any(true) ); // sal_Bool + aValueMap.emplace( "ParaAdjust", uno::Any(style::ParagraphAdjust_CENTER) ); // style::ParagraphAdjust_CENTER - needs to be overwritten if( bName ) aValueMap.emplace( "Name", uno::Any( OUString() ) ); //CID OUString - needs to be overwritten for each point |