Skip to content

Commit

Permalink
Don't log if SVG image with no supported shape (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
poire-z authored and Frenzie committed Aug 30, 2017
1 parent 34d73f4 commit 0eb0962
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crengine/src/lvimg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,9 @@ int LVSvgImageSource::DecodeFromBuffer(unsigned char *buf, int buf_size, LVImage
// If no supported shapes, it will be a blank empty image.
// Better to let user know that with an unsupported image display (empty
// square with borders).
printf("SVG: got image with zero supported shape.\n");
// But commented to not flood koreader's log for books with many such
// svg images (crengine would log this at each page change)
// printf("SVG: got image with zero supported shape.\n");
nsvgDelete(image);
return res;
}
Expand Down

0 comments on commit 0eb0962

Please sign in to comment.