summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/png.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdimensionxx/png.cpp')
-rw-r--r--libdimensionxx/png.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimensionxx/png.cpp b/libdimensionxx/png.cpp
index 1f61e72..5ca8e02 100644
--- a/libdimensionxx/png.cpp
+++ b/libdimensionxx/png.cpp
@@ -58,7 +58,7 @@ namespace Dimension
FILE_Cookie cookie(*m_ostr);
// Write the PNG file
- if (dmnsn_png_write_canvas(m_canvas->dmnsn(), cookie.file())) {
+ if (dmnsn_png_write_canvas(m_canvas->dmnsn(), cookie.file()) != 0) {
// The actual write operation failed, for some reason
throw Dimension_Error("Writing canvas to PNG failed.");
}