Kaydet (Commit) cee6f65b authored tarafından Szymon Kłos's avatar Szymon Kłos

tdf#113162 corect the size only for watermark 2

Missing part for: 91d909ac

Change-Id: Id35d61084e034c7381c8e8016e50dd66aaf41d59
Reviewed-on: https://gerrit.libreoffice.org/43915Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
Tested-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst 91263493
......@@ -4420,7 +4420,8 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r
aFont.SetFamilyName( aFontName );
auto nTextWidth = pOut->GetTextWidth( aObjectText );
if ( nTextWidth && aObjData.eShapeType == mso_sptTextPlainText )
OUString aObjName = GetPropertyString(DFF_Prop_wzName, rSt);
if ( nTextWidth && aObjData.eShapeType == mso_sptTextPlainText && aObjName.match("PowerPlusWaterMarkObject"))
{
fRatio = aFont.GetFontSize().Height();
fRatio /= nTextWidth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment