diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-06 16:37:44 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-06 16:37:44 +0000 |
commit | c54af1b6644216335361e61e770037aca1527756 (patch) | |
tree | 206f7b14798cec287f8f6112b29840664aaf5758 /libdimensionxx/png.cpp | |
parent | 4922d448896abe5330f106f21fd6a3b0651ae9eb (diff) | |
download | dimension-c54af1b6644216335361e61e770037aca1527756.tar.xz |
New GL C++ wrapper.
Diffstat (limited to 'libdimensionxx/png.cpp')
-rw-r--r-- | libdimensionxx/png.cpp | 2 |
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."); } |