Fix STR#2884: Fl_PNG_Image made from static memory will forget share name (cont'd).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2012-11-10 09:01:16 +00:00
parent 54d5327958
commit 73069f9fdb

View File

@ -3,7 +3,7 @@
//
// Fl_PNG_Image routines.
//
// Copyright 1997-2011 by Easy Software Products.
// Copyright 1997-2012 by Easy Software Products.
// Image support by Matthias Melcher, Copyright 2000-2009.
//
// This library is free software. Distribution and use rights are outlined in
@ -114,7 +114,7 @@ void Fl_PNG_Image::load_png_(const char *name_png, const unsigned char *buffer_p
if (!from_memory) {
if ((fp = fl_fopen(name_png, "rb")) == NULL) return;
}
const char *display_name = (name_png ? name_png : "");
const char *display_name = (name_png ? name_png : "In-memory PNG data");
// Setup the PNG data structures...
pp = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);