diff options
author | scuri <scuri> | 2009-08-13 02:27:09 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-08-13 02:27:09 +0000 |
commit | 22eee5011ab2699a3267bde4a7b4430d8460314c (patch) | |
tree | c3bf218e3e7b5a261f060667bd64c185eb2e31ed /src/im_image.cpp | |
parent | 6a8ef4952936e5bd018b2b595a3fd1bb40fbb103 (diff) |
*** empty log message ***
Diffstat (limited to 'src/im_image.cpp')
-rw-r--r-- | src/im_image.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/im_image.cpp b/src/im_image.cpp index 80553a7..7bc20de 100644 --- a/src/im_image.cpp +++ b/src/im_image.cpp @@ -2,7 +2,7 @@ * \brief Image Manipulation * * See Copyright Notice in im_lib.h - * $Id: im_image.cpp,v 1.2 2009/08/12 04:09:16 scuri Exp $ + * $Id: im_image.cpp,v 1.3 2009/08/13 02:27:10 scuri Exp $ */ #include <stdlib.h> @@ -465,8 +465,10 @@ void imImageSetAttribute(imImage* image, const char* attrib, int data_type, int attrib_table->Set(attrib, data_type, count, data); } - else + else if (count == 0) attrib_table->UnSet(attrib); + else + attrib_table->Set(attrib, data_type, count, NULL); } const void* imImageGetAttribute(const imImage* image, const char* attrib, int *data_type, int *count) |