diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2018-08-07 10:44:21 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-08-10 10:21:06 +0200 |
commit | 2b05c8c3a89357eee6fe5a4868292eb4621a9634 (patch) | |
tree | 0ff00a5394554a08a1acf0b0f7043b4f2f8f30cd /oox | |
parent | be177d6974e651ec28dab3dddb1fa6e1d7aee736 (diff) |
tdf#116350 Correctly display text on arc
Change-Id: Ice8c141db20d43ccc8d6e2b56004a4a28d2b257a
Reviewed-on: https://gerrit.libreoffice.org/58729
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/shape.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 9a16ead2b78e..da51c573785a 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -545,13 +545,22 @@ static inline void lcl_createPresetShape( uno::Reference<drawing::XShape>& xShap lcl_resetPropertyValue( aGeomPropVec, sEquations ); lcl_resetPropertyValue( aGeomPropVec, sPath ); + // Some shapes don't need scaling + bool bScale = true; + if ( rPresetType == "textRingInside" + || rPresetType == "textRingOutside" + || rPresetType == "textCirclePour" ) + { + bScale = false; + } + // Apply geometry properties uno::Sequence<beans::PropertyValue> aPropertyValues( comphelper::InitPropertySequence( { { sTextPath, uno::makeAny( true ) }, { "TextPathMode", uno::Any( drawing::EnhancedCustomShapeTextPathMode_PATH ) }, - { "ScaleX", uno::Any( false ) } } ) ); + { "ScaleX", uno::Any( bScale ) } } ) ); lcl_setPropertyValue( aGeomPropVec, sTextPath, comphelper::makePropertyValue( sTextPath, aPropertyValues ) ); |