--- a/ooDialog/trunk/ooDialog/oodTreeView.cpp
+++ b/ooDialog/trunk/ooDialog/oodTreeView.cpp
@@ -766,7 +766,7 @@
 
     if ( (tag & TAG_FLAGMASK) == TAG_PRESERVE_OLD )
     {
-        if ( StrStrI(methodName, "DEFTREEEDITHANDLER") != 0 )
+        if ( StrCmpI(methodName, "DEFTREEEDITHANDLER") != 0 )
         {
             RexxStringObject mthName = c->String(methodName);
             RexxObjectPtr    hItem   = pointer2string(c, pdi->item.hItem);