[opengtl-commits] [302] evil copy/paste, fix warning about unitialized variable |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 302
Author: cyrille
Date: 2008-07-16 13:53:53 +0200 (Wed, 16 Jul 2008)
Log Message:
-----------
evil copy/paste, fix warning about unitialized variable
Modified Paths:
--------------
trunk/OpenGTL/Extensions/PngDC/PngDC.cpp
Modified: trunk/OpenGTL/Extensions/PngDC/PngDC.cpp
===================================================================
--- trunk/OpenGTL/Extensions/PngDC/PngDC.cpp 2008-07-07 12:27:34 UTC (rev 301)
+++ trunk/OpenGTL/Extensions/PngDC/PngDC.cpp 2008-07-16 11:53:53 UTC (rev 302)
@@ -223,7 +223,7 @@
default:
png_destroy_write_struct(&png_ptr, &info_ptr);
fclose(fp);
- TELL_ERROR( "Unsupported color type: " + GTLCore::String::number( color_type ) );
+ TELL_ERROR( "Unsupported number of channels: " + GTLCore::String::number( _image->pixelDescription().channels() ) );
}
// Set information
png_set_IHDR( png_ptr, info_ptr, _region.width(), _region.height()