aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Image.cc')
-rw-r--r--src/FbTk/Image.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/Image.cc b/src/FbTk/Image.cc
index f5ffc24..98b602c 100644
--- a/src/FbTk/Image.cc
+++ b/src/FbTk/Image.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Image.cc,v 1.2 2003/11/16 22:33:55 rathnor Exp $ 22// $Id: Image.cc,v 1.3 2003/12/16 17:06:51 fluxgen Exp $
23 23
24#include "Image.hh" 24#include "Image.hh"
25#include "StringUtil.hh" 25#include "StringUtil.hh"
@@ -87,10 +87,12 @@ bool Image::registerType(const std::string &type, ImageBase &base) {
87 s_image_map[ucase_type] != &base) 87 s_image_map[ucase_type] != &base)
88 return false; 88 return false;
89 // already registered? 89 // already registered?
90 if (s_image_map[ucase_type] = &base) 90 if (s_image_map[ucase_type] == &base)
91 return true; 91 return true;
92 92
93 s_image_map[ucase_type] = &base; 93 s_image_map[ucase_type] = &base;
94
95 return true;
94} 96}
95 97
96void Image::remove(ImageBase &base) { 98void Image::remove(ImageBase &base) {