git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23002
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( entry == end )
{
wxLogError(_("XPM: Malformed pixel data!"));
if ( entry == end )
{
wxLogError(_("XPM: Malformed pixel data!"));
+
+ // better return right now as otherwise we risk to flood the
+ // user with error messages as something seems to be seriously
+ // wrong with the file and so we could give this message for
+ // each remaining pixel if we don't bail out
+ return wxNullImage;