diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2012-03-18 22:39:52 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2012-03-19 10:54:55 -0500 |
commit | ce9d8a3f48da97fc1d71713c7238778ff16a8fdb (patch) | |
tree | 06ef70f1b38d856d58ad841597cfc066dd9012f8 /pngset.c | |
parent | eda53e577093f367877daef154cf83533da390d0 (diff) | |
download | libpng-ce9d8a3f48da97fc1d71713c7238778ff16a8fdb.tar.gz |
[libpng16] Imported from libpng-1.6.0beta19.tarv1.6.0beta19
Diffstat (limited to 'pngset.c')
-rw-r--r-- | pngset.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1335,10 +1335,12 @@ png_set_benign_errors(png_structrp png_ptr, int allowed) */ if (allowed) - png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN; + png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN | + PNG_FLAG_APP_WARNINGS_WARN | PNG_FLAG_APP_ERRORS_WARN; else - png_ptr->flags &= ~PNG_FLAG_BENIGN_ERRORS_WARN; + png_ptr->flags &= ~(PNG_FLAG_BENIGN_ERRORS_WARN | + PNG_FLAG_APP_WARNINGS_WARN | PNG_FLAG_APP_ERRORS_WARN); } #endif /* PNG_BENIGN_ERRORS_SUPPORTED */ |