Skip to content

Commit

Permalink
small comment
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Mar 7, 2011
1 parent 90c2c99 commit c87e3c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Png.cpp
Expand Up @@ -315,6 +315,8 @@ Return PngWriter::write() {
if(!hasAllChunks) return true; // just wait but don't fail

if(dataChunks.size() > 0) {
// We want to have the data chunk size = PngDataChunkSize.
// The only case where we cannot have this is at the very end.
if((scanlines.size() == 0 && hasAllScanlines) || dataChunks.front().size() == PngDataChunkSize) {
PngChunk chunk;
chunk.type = "IDAT";
Expand Down

0 comments on commit c87e3c0

Please sign in to comment.