https://github.com/ImageMagick/ImageMagick/issues/1019
authorCristy <urban-warrior@imagemagick.org>
Mon, 9 Jul 2018 23:32:35 +0000 (19:32 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 9 Jul 2018 23:32:35 +0000 (19:32 -0400)
Magick++/tests/attributes.cpp

index 66aad95b256cf8ccf79b02461b35f43f592f83e7..e1a2d68dbbfb2e8957717ed35a07faf8962b69e5 100644 (file)
@@ -154,7 +154,7 @@ int main( int /*argc*/, char ** argv)
     //
 
     // Test default value.
-    if ( image.backgroundColor() != ColorRGB("white") )
+    if ( image.backgroundColor() != string(ColorRGB("white")) )
       {
        ++failures;
        cout << "Line: " << __LINE__ << ", backgroundColor default ("
@@ -1055,7 +1055,7 @@ int main( int /*argc*/, char ** argv)
     // pixelColor
     //
     // Test default
-    if ( image.pixelColor(40,60) != canvasColor )
+    if ( image.pixelColor(40,60) != string(canvasColor) )
       {
        ++failures;
        cout << "Line: " << __LINE__ << ", pixelColor default ("