mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-04 17:15:23 -06:00
.RasterEncoder fix
git-svn-id: svn://ultimatepp.org/upp/trunk@2715 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c45f1577a2
commit
070bb0312e
3 changed files with 12 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue