diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-09-22 11:38:35 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-09-23 16:47:58 +0200 |
commit | 23cbe9b969db11f9fb25d8dffe8d801e002b5e94 (patch) | |
tree | 83731eb4d3e60ebfdc5e8e2d69da91e0a9ec9d7d /vcl | |
parent | abe8d06682c68c85f750d05409322a5eabc84158 (diff) |
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.kaganski@collabora.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qa/cppunit/GraphicTest.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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() |