diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2018-08-07 10:44:21 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2018-08-08 15:58:24 +0200 |
commit | e1d6ed941590a771abfc73f9eef4a98346eca762 (patch) | |
tree | 96263e1ce3bb87f653abd3fb68c269cfbd8ad219 /oox | |
parent | 63c91b9cb3f73b66a915875721b0efd65b8aebac (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 f49f506eda9d..4f11186254f0 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -548,13 +548,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 ) ); |