summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-07-08 17:45:08 +0200
committerTomaž Vajngerl <quikee@gmail.com>2020-07-08 20:53:41 +0200
commit243b96653e0f5d1113521129baecb4e1c278cc83 (patch)
treedb5fa17b091925d648699ed7efd0452db2f7b9e5
parent8876a037a657ec61d29c2951ae910a2e56e16840 (diff)
svmtest shouldn't compare rendering against itself
Change-Id: I426187abfd4e5e2596f9680aff14fc1e370a18ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98383 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--vcl/qa/cppunit/svm/svmtest.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/svm/svmtest.cxx b/vcl/qa/cppunit/svm/svmtest.cxx
index f318aa718c4d..e03267e3bd36 100644
--- a/vcl/qa/cppunit/svm/svmtest.cxx
+++ b/vcl/qa/cppunit/svm/svmtest.cxx
@@ -258,8 +258,9 @@ void SvmTest::checkRendering(ScopedVclPtrInstance<VirtualDevice> const & pVirtua
{
BitmapEx aSourceBitmapEx = pVirtualDev->GetBitmapEx(Point(), Size(10, 10));
ScopedVclPtrInstance<VirtualDevice> pVirtualDevResult;
+ pVirtualDevResult->SetOutputSizePixel(Size(10, 10));
const_cast<GDIMetaFile&>(rMetaFile).Play(pVirtualDevResult.get());
- BitmapEx aResultBitmapEx = pVirtualDev->GetBitmapEx(Point(), Size(10, 10));
+ BitmapEx aResultBitmapEx = pVirtualDevResult->GetBitmapEx(Point(), Size(10, 10));
const bool bWriteCompareBitmap = false;