summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-08-09 12:15:53 +0200
committerAndras Timar <andras.timar@collabora.com>2017-08-09 14:28:17 +0200
commitd2801a3634b1e4e0fb52f1257fd7482aed8c337c (patch)
tree902b9255564404233449f6902a4eb75a698ed684 /filter
parent20241e3b747c1dd8b28dce79bc75230b9bf57752 (diff)
tdf#111480 Circular text was imported horizontally
Change-Id: I84a6c3a30fd1dddf104ad8bf037a5e0b2a90d376 Reviewed-on: https://gerrit.libreoffice.org/40912 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit 2b562f7531d097def1cf312f13df2fe9e9789ebe) Reviewed-on: https://gerrit.libreoffice.org/40917 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 207a9012a45c..6e92dfe58c56 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4416,7 +4416,7 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r
aFont.SetFamilyName( aFontName );
auto nTextWidth = pOut->GetTextWidth( aObjectText );
- if ( nTextWidth )
+ if ( nTextWidth && aObjData.eShapeType == mso_sptTextPlainText )
{
fRatio = aFont.GetFontSize().Height();
fRatio /= nTextWidth;