summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-17 17:14:58 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-17 17:40:22 +0100
commit6d00110674452c66ca6192fbf46b41331b2c7066 (patch)
treecb5233043dca92ae71891fdae1a1b0d427726725 /sw
parentc9db32de2deeaa705e3da4945f62a94b75a7e4c5 (diff)
sw lok comments: fix meta author/data size with custom zoom
Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/SidebarWin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index 145033d91008..ba81a3e6f35a 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -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 );
}