Kaydet (Commit) 68808270 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw lok comments: fix meta author/data size with custom zoom

Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e
(cherry picked from commit 50bdd588d39a23d44d2d2111256f5e505c7165af)
üst 5abc86ab
......@@ -668,11 +668,12 @@ void SwSidebarWin::Rescale()
mpOutliner->SetRefMapMode( aMode );
SetMapMode( aMode );
mpSidebarTextControl->SetMapMode( aMode );
const Fraction& rFraction = mrView.GetWrtShellPtr()->GetOut()->GetMapMode().GetScaleY();
if ( mpMetadataAuthor )
{
vcl::Font aFont( mpMetadataAuthor->GetSettings().GetStyleSettings().GetFieldFont() );
sal_Int32 nHeight = aFont.GetHeight();
nHeight = nHeight * aMode.GetScaleY().GetNumerator() / aMode.GetScaleY().GetDenominator();
nHeight = nHeight * rFraction.GetNumerator() / rFraction.GetDenominator();
aFont.SetHeight( nHeight );
mpMetadataAuthor->SetControlFont( aFont );
}
......@@ -680,7 +681,7 @@ void SwSidebarWin::Rescale()
{
vcl::Font aFont( mpMetadataDate->GetSettings().GetStyleSettings().GetFieldFont() );
sal_Int32 nHeight = aFont.GetHeight();
nHeight = nHeight * aMode.GetScaleY().GetNumerator() / aMode.GetScaleY().GetDenominator();
nHeight = nHeight * rFraction.GetNumerator() / rFraction.GetDenominator();
aFont.SetHeight( nHeight );
mpMetadataDate->SetControlFont( aFont );
}
......
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