vcl/qa/cppunit/GraphicTest.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 23cbe9b969db11f9fb25d8dffe8d801e002b5e94
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Sep 22 11:38:35 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Sep 23 16:47:58 2022 +0200

    Fix GraphicTest::testLoadSVGZ() on non-default DPI
    
    Change-Id: I6f6435a285e34cf27798265d9d98f15337991b54
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140406
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/vcl/qa/cppunit/GraphicTest.cxx b/vcl/qa/cppunit/GraphicTest.cxx
index 09bf18782708..d8875666431e 100644
--- a/vcl/qa/cppunit/GraphicTest.cxx
+++ b/vcl/qa/cppunit/GraphicTest.cxx
@@ -1331,8 +1331,9 @@ void GraphicTest::testLoadSVGZ()
 {
     Graphic aGraphic = loadGraphic(u"TypeDetectionExample.svgz");
     CPPUNIT_ASSERT_EQUAL(GraphicType::Bitmap, aGraphic.GetType());
-    CPPUNIT_ASSERT_EQUAL(tools::Long(100), aGraphic.GetSizePixel().Width());
-    CPPUNIT_ASSERT_EQUAL(tools::Long(100), aGraphic.GetSizePixel().Height());
+    const auto[scalingX, scalingY] = getDPIScaling();
+    CPPUNIT_ASSERT_EQUAL(tools::Long(100 * scalingX), 
aGraphic.GetSizePixel().Width());
+    CPPUNIT_ASSERT_EQUAL(tools::Long(100 * scalingY), 
aGraphic.GetSizePixel().Height());
 }
 
 void GraphicTest::testAvailableThreaded()

Reply via email to