Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 8, 2023
1 parent d31945e commit 3c24f8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Magick++/tests/readWriteImages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ int main(int,char ** argv)
third.write("testmagick_anim_out.ico");
fourth.read("testmagick_anim_out.ico");

if (fourth.magick() != "ICO")
if (fourth.magick() != "BMP")
{
++failures;
cout << "Line: " << __LINE__
<< " Image magick: " << fourth.magick()
<< " is not equal to ICO"
<< " is not equal to BMP"
<< endl;
}

Expand Down
3 changes: 2 additions & 1 deletion magick/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -2827,7 +2827,8 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info,
}
}
*extension='\0';
GetPathComponent(image_info->filename,ExtensionPath,extension);
if (*image_info->magick == '\0')
GetPathComponent(image_info->filename,ExtensionPath,extension);
if (*extension != '\0')
{
char
Expand Down

0 comments on commit 3c24f8c

Please sign in to comment.