Kaydet (Commit) 804f47a8 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

fdo#55931, fdo#57956: Fix both autofit and stretched width.

This rewrites commit fa694a21 (fix of
fdo#55931), and fixes it a better way.

Change-Id: I9ac0c78294e6a9c510c12b22547564b736416131
üst e6cccd3d
......@@ -2643,7 +2643,13 @@ void ImpEditEngine::SeekCursor( ContentNode* pNode, sal_uInt16 nPos, SvxFont& rF
// ugly on the screen!
OutputDevice* pDev = pOut ? pOut : GetRefDevice();
rFont.SetPhysFont( pDev );
Size aRealSz( rFont.GetSize().Width(), rFont.GetSize().Height() );
FontMetric aMetric( pDev->GetFontMetric() );
// Set the font as we want it to look like & reset the Propr attribute
// so that it is not counted twice.
Size aRealSz( aMetric.GetSize() );
rFont.SetPropr( 100 );
if ( aStatus.DoStretch() )
{
if ( nStretchY != 100 )
......
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