X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=Magick%2B%2B%2Flib%2FColor.cpp;h=c382d45b6604a038d72345f8942159cdb7cf48b5;hb=9950d57e1124b73f684fb5946e206994cefda628;hp=3a8f8b5bfcc4b104120f254639a34e7b760aac75;hpb=aa8634f731b35f3924daf3aa1a8eb52d2cba0c44;p=imagemagick diff --git a/Magick++/lib/Color.cpp b/Magick++/lib/Color.cpp index 3a8f8b5bf..c382d45b6 100644 --- a/Magick++/lib/Color.cpp +++ b/Magick++/lib/Color.cpp @@ -196,7 +196,7 @@ const Magick::Color& Magick::Color::operator = ( const std::string &x11color_ ) PixelPacket target_color; ExceptionInfo exception; GetExceptionInfo( &exception ); - if ( QueryColorDatabase( x11color_.c_str(), &target_color, &exception ) ) + if ( QueryColorCompliance( x11color_.c_str(), AllCompliance, &target_color, &exception ) ) { redQuantum( target_color.red ); greenQuantum( target_color.green );