mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-02 19:28:37 +02:00
Fixed non-Qt build
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user