Fixed non-Qt build

This commit is contained in:
Matthias Koefferlein
2022-05-05 23:44:47 +02:00
parent 6feed82808
commit 51666eb439
4 changed files with 16 additions and 3 deletions
@@ -103,6 +103,7 @@ static bool compare_images (const lay::BitmapBuffer &img, const lay::BitmapBuffe
#endif
#if defined(HAVE_QT) // @@@
TEST(1)
{
lay::LayoutView lv (0, false, 0);
@@ -169,3 +170,4 @@ TEST(3)
EXPECT_EQ (compare_images (qimg, au), true);
}
#endif
@@ -69,6 +69,8 @@ static bool compare_images_mono (const QImage &qimg, const std::string &au)
}
}
#endif
static bool compare_images (const lay::PixelBuffer &img, const lay::PixelBuffer &img2)
{
if (img2.width () == img.width () && img2.height () == img.height ()) {
@@ -101,8 +103,6 @@ static bool compare_images (const lay::BitmapBuffer &img, const lay::BitmapBuffe
}
}
#endif
TEST(1)
{
lay::PixelBuffer img (15, 25);