vcl/source/outdev/outdev.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 1ec21c7f2ab80ce518acec2f44017649abae5974
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Fri Aug 5 14:34:45 2022 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Aug 5 21:18:06 2022 +0200

    Use 1 meter, not 10 meters divided by 10
    
    Change-Id: I035bd25509db608d2273949cecd438d412e5a4c5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137816
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index e831cf746199..952d4ac43550 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -736,9 +736,9 @@ css::awt::DeviceInfo OutputDevice::GetCommonDeviceInfo(Size 
const& rDevSz) const
     aInfo.Width = rDevSz.Width();
     aInfo.Height = rDevSz.Height();
 
-    Size aTmpSz = LogicToPixel(Size(1000, 1000), MapMode(MapUnit::MapCM));
-    aInfo.PixelPerMeterX = aTmpSz.Width() / 10;
-    aInfo.PixelPerMeterY = aTmpSz.Height() / 10;
+    Size aTmpSz = LogicToPixel(Size(1000, 1000), MapMode(MapUnit::MapMM));
+    aInfo.PixelPerMeterX = aTmpSz.Width();
+    aInfo.PixelPerMeterY = aTmpSz.Height();
     aInfo.BitsPerPixel = GetBitCount();
 
     aInfo.Capabilities = css::awt::DeviceCapability::RASTEROPERATIONS |

Reply via email to