diff options
| author | Manolo Gouy <Manolo> | 2012-11-10 09:01:16 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2012-11-10 09:01:16 +0000 |
| commit | 73069f9fdb16ba705ebf245c230e16d513eafc7e (patch) | |
| tree | d27653a65c84c892043f231a8d6921989e95543d | |
| parent | 54d5327958cbf6bd07ef34ebd3f3aea6415c51cc (diff) | |
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
| -rw-r--r-- | src/Fl_PNG_Image.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_PNG_Image.cxx b/src/Fl_PNG_Image.cxx index 24d3127d3..9f8e368b3 100644 --- a/src/Fl_PNG_Image.cxx +++ b/src/Fl_PNG_Image.cxx @@ -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); |
