summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-08-09 12:15:53 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2017-08-09 13:46:32 +0200
commit2b562f7531d097def1cf312f13df2fe9e9789ebe (patch)
tree0cb00f5df255e0906941c92db61b8ac1be4cd27d /filter
parent5937eefe533fba332ab6a83da02496bb4b0bd3db (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>
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 adbd3d41b9a3..5360f750da48 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4407,7 +4407,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;