summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-01-22 10:44:22 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2022-01-22 15:03:54 +0100
commit69e33b83f58c6d0dae36a6f85070a5340366dc75 (patch)
tree006d5042b9e10c13670a3a2e064fbfc1ea82756c
parentUpdate git submodules (diff)
downloadcore-69e33b83f58c6d0dae36a6f85070a5340366dc75.tar.gz
core-69e33b83f58c6d0dae36a6f85070a5340366dc75.zip
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 <hr@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 <serval2412@yahoo.fr> Tested-by: Jenkins
-rw-r--r--sd/source/ui/docshell/docshel2.cxx8
1 files changed, 1 insertions, 7 deletions
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
{