Fix DISPLAY build

Seen:

	error: non-const lvalue reference to type 'Bitmap' cannot bind to a value of unrelated type 'BitmapEx'

on Linux, with DISPLAY set to a non-empty value (X11).

Change-Id: I92102409275a1be748d924bbd551cb805bdf0abf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188492
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
This commit is contained in:
Miklos Vajna
2025-07-29 09:02:55 +02:00
parent 5ec2d0442a
commit 819230575d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ public:
CPPUNIT_ASSERT(pModel);
SfxObjectShell* pShell = pModel->GetObjectShell();
std::shared_ptr<GDIMetaFile> xMetaFile = pShell->GetPreviewMetaFile();
BitmapEx aResultBitmap;
Bitmap aResultBitmap;
CPPUNIT_ASSERT(xMetaFile->CreateThumbnail(aResultBitmap));
// If this is set, the metafile will be dumped as a PNG one for debug purposes.
char* pEnv = getenv("CPPCANVAS_DEBUG_EMFPLUS_DUMP_TO");
@@ -44,7 +44,7 @@ public:
CPPUNIT_ASSERT(aWriter.write(aResultBitmap));
}
return aResultBitmap.GetBitmap();
return aResultBitmap;
}
};
+2 -2
View File
@@ -34,9 +34,9 @@ public:
CPPUNIT_ASSERT(pModel);
SfxObjectShell* pShell = pModel->GetObjectShell();
std::shared_ptr<GDIMetaFile> xMetaFile = pShell->GetPreviewMetaFile();
BitmapEx aResultBitmap;
Bitmap aResultBitmap;
CPPUNIT_ASSERT(xMetaFile->CreateThumbnail(aResultBitmap));
return aResultBitmap.GetBitmap();
return aResultBitmap;
}
};