Author: Carlos Lopez <[email protected]>
Date:   Sat Jul 21 09:55:35 2012 +0200

target_cairo_png: replace info message by warning when error has occurred.

---

 synfig-core/src/modules/mod_png/trgt_cairo_png.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/synfig-core/src/modules/mod_png/trgt_cairo_png.cpp 
b/synfig-core/src/modules/mod_png/trgt_cairo_png.cpp
index 0c4c062..e44d22f 100644
--- a/synfig-core/src/modules/mod_png/trgt_cairo_png.cpp
+++ b/synfig-core/src/modules/mod_png/trgt_cairo_png.cpp
@@ -118,7 +118,7 @@ cairo_png_trgt::put_surface(cairo_surface_t *surface, 
synfig::ProgressCallback *
                return false;
        }
        cairo_status_t status = cairo_surface_write_to_png(surface, 
filename.c_str());
-       synfig::info(cairo_status_to_string(status));
+       if(status!=CAIRO_STATUS_SUCCESS) 
synfig::warning(cairo_status_to_string(status));
        imagecount++;
 
        cairo_surface_destroy(surface);


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to