mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-29 06:12:59 -06:00
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:
parent
4588382ccd
commit
d019fc1568
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue