Blame SOURCES/0340-sw-lok-comments-fix-meta-author-data-size-with-custo.patch

135360
From 8e392047f43791e6876e21f4e4a9deccc92f734a Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Tue, 17 Nov 2015 17:14:58 +0100
135360
Subject: [PATCH 340/398] sw lok comments: fix meta author/data size with
135360
 custom zoom
135360
135360
Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e
135360
(cherry picked from commit 6d00110674452c66ca6192fbf46b41331b2c7066)
135360
---
135360
 sw/source/uibase/docvw/SidebarWin.cxx | 5 +++--
135360
 1 file changed, 3 insertions(+), 2 deletions(-)
135360
135360
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
135360
index 693bcdf5b09a..9d12a12eae35 100644
135360
--- a/sw/source/uibase/docvw/SidebarWin.cxx
135360
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
135360
@@ -669,11 +669,12 @@ void SwSidebarWin::Rescale()
135360
     mpOutliner->SetRefMapMode( aMode );
135360
     SetMapMode( aMode );
135360
     mpSidebarTextControl->SetMapMode( aMode );
135360
+    const Fraction& rFraction = mrView.GetWrtShellPtr()->GetOut()->GetMapMode().GetScaleY();
135360
     if ( mpMetadataAuthor )
135360
     {
135360
         vcl::Font aFont( mpMetadataAuthor->GetSettings().GetStyleSettings().GetFieldFont() );
135360
         sal_Int32 nHeight = aFont.GetHeight();
135360
-        nHeight = nHeight * aMode.GetScaleY().GetNumerator() / aMode.GetScaleY().GetDenominator();
135360
+        nHeight = nHeight * rFraction.GetNumerator() / rFraction.GetDenominator();
135360
         aFont.SetHeight( nHeight );
135360
         mpMetadataAuthor->SetControlFont( aFont );
135360
     }
135360
@@ -681,7 +682,7 @@ void SwSidebarWin::Rescale()
135360
     {
135360
         vcl::Font aFont( mpMetadataDate->GetSettings().GetStyleSettings().GetFieldFont() );
135360
         sal_Int32 nHeight = aFont.GetHeight();
135360
-        nHeight = nHeight * aMode.GetScaleY().GetNumerator() / aMode.GetScaleY().GetDenominator();
135360
+        nHeight = nHeight * rFraction.GetNumerator() / rFraction.GetDenominator();
135360
         aFont.SetHeight( nHeight );
135360
         mpMetadataDate->SetControlFont( aFont );
135360
     }
135360
-- 
135360
2.12.0
135360