.RasterEncoder fix

git-svn-id: svn://ultimatepp.org/upp/trunk@2715 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-09-20 19:17:05 +00:00
parent c45f1577a2
commit 070bb0312e
3 changed files with 12 additions and 3 deletions

View file

@ -134,6 +134,8 @@ void ImageEncoder::WriteLineRaw(const byte *data)
void StreamRasterEncoder::Save(Stream& s, Raster& raster)
{
if(raster.GetWidth() == 0 || raster.GetHeight() == 0)
return;
SetStream(s);
Size sz = raster.GetSize();
SetDots(raster.GetInfo().dots);