Kaydet (Commit) 9223799e authored tarafından Tamás Zolnai's avatar Tamás Zolnai

Bullets: Use relative size when it's supported

In Writer it might cause a problem to use relative
size with text based numberings.

Change-Id: Id19b5e45f0f932d1b69028f343daad7dec34ae23
Reviewed-on: https://gerrit.libreoffice.org/66811
Tested-by: Jenkins
Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
üst 1dcdb9b5
......@@ -2438,10 +2438,13 @@ void SvxNumberingPreview::Paint(vcl::RenderContext& rRenderContext, const ::tool
{
vcl::Font aFont(aStdFont);
Size aTmpSize(aStdFont.GetFontSize());
aTmpSize.setWidth( aTmpSize.Width() * ( rFmt.GetBulletRelSize()) );
aTmpSize.setWidth( aTmpSize.Width() / 100 ) ;
aTmpSize.setHeight( aTmpSize.Height() * ( rFmt.GetBulletRelSize()) );
aTmpSize.setHeight( aTmpSize.Height() / 100 ) ;
if(pActNum->IsFeatureSupported(SvxNumRuleFlags::BULLET_REL_SIZE))
{
aTmpSize.setWidth( aTmpSize.Width() * ( rFmt.GetBulletRelSize()) );
aTmpSize.setWidth( aTmpSize.Width() / 100 ) ;
aTmpSize.setHeight( aTmpSize.Height() * ( rFmt.GetBulletRelSize()) );
aTmpSize.setHeight( aTmpSize.Height() / 100 ) ;
}
if(!aTmpSize.Height())
aTmpSize.setHeight( 1 );
aFont.SetFontSize(aTmpSize);
......
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