summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-09-22 11:38:35 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-09-23 16:47:58 +0200
commit23cbe9b969db11f9fb25d8dffe8d801e002b5e94 (patch)
tree83731eb4d3e60ebfdc5e8e2d69da91e0a9ec9d7d /vcl
parentabe8d06682c68c85f750d05409322a5eabc84158 (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.cxx5
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()