sd/source/ui/docshell/docshel2.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit 69e33b83f58c6d0dae36a6f85070a5340366dc75
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sat Jan 22 10:44:22 2022 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sat Jan 22 15:03:54 2022 +0100

    This conversion is no-op
    
    The two map modes are both mm100, and it was always that way
    since commit f47a9d9db3d06927380bb79b04bb6d4721a92d2b
    
        author      Jens-Heiner Rechtien <h...@openoffice.org>
        date        Mon Sep 18 16:07:07 2000 +0000
    
        initial import
    
    Change-Id: I4c24f8665b7b27569431526a3a7ead6469322055
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128682
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
    Tested-by: Jenkins

diff --git a/sd/source/ui/docshell/docshel2.cxx 
b/sd/source/ui/docshell/docshel2.cxx
index 2610e3ce60fe..38a4fa5ee1eb 100644
--- a/sd/source/ui/docshell/docshel2.cxx
+++ b/sd/source/ui/docshell/docshel2.cxx
@@ -123,13 +123,7 @@ void DrawDocShell::Draw(OutputDevice* pOut, const 
JobSetup&, sal_uInt16 nAspect)
     if( ( ASPECT_THUMBNAIL == nAspect ) || ( ASPECT_DOCPRINT == nAspect ) )
     {
         // provide size of first page
-        MapMode aSrcMapMode(MapUnit::MapPixel);
-        MapMode aDstMapMode(MapUnit::Map100thMM);
-        Size aSize = mpDoc->GetSdPage(0, PageKind::Standard)->GetSize();
-        aSrcMapMode.SetMapUnit(MapUnit::Map100thMM);
-
-        aSize = Application::GetDefaultDevice()->LogicToLogic(aSize, 
&aSrcMapMode, &aDstMapMode);
-        aVisArea.SetSize(aSize);
+        aVisArea.SetSize(mpDoc->GetSdPage(0, PageKind::Standard)->GetSize());
     }
     else
     {

Reply via email to