From 73069f9fdb16ba705ebf245c230e16d513eafc7e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 10 Nov 2012 09:01:16 +0000 Subject: 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 --- src/Fl_PNG_Image.cxx | 4 ++-- 1 file 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); -- cgit v1.2.3