RasterPlayer: Problem avoided if input is empty

git-svn-id: svn://ultimatepp.org/upp/trunk@7471 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2014-06-29 15:06:29 +00:00
parent 4588382ccd
commit d019fc1568

View file

@ -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<StreamRaster> raster = StreamRaster::OpenAny(str);
if(!raster)