From d019fc15684691a8a4efc5f8c8ccda34aeae807a Mon Sep 17 00:00:00 2001 From: koldo Date: Sun, 29 Jun 2014 15:06:29 +0000 Subject: [PATCH] RasterPlayer: Problem avoided if input is empty git-svn-id: svn://ultimatepp.org/upp/trunk@7471 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/RasterPlayer/RasterPlayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uppsrc/RasterPlayer/RasterPlayer.cpp b/uppsrc/RasterPlayer/RasterPlayer.cpp index 25740e611..9fe2b0d2d 100644 --- a/uppsrc/RasterPlayer/RasterPlayer.cpp +++ b/uppsrc/RasterPlayer/RasterPlayer.cpp @@ -55,6 +55,8 @@ void RasterPlayer::Paint(Draw& w) { static StaticCriticalSection mutex; bool RasterPlayer::LoadBuffer(const String &buffer) { + if (buffer.IsEmpty()) + return false; StringStream str(buffer); One raster = StreamRaster::OpenAny(str); if(!raster)