Browse Source

fixed bug in init code

Ken Martin 25 years ago
parent
commit
67e31b789f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmVTKWrapTclCommand.cxx

+ 2 - 2
Source/cmVTKWrapTclCommand.cxx

@@ -196,7 +196,7 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
     fprintf(fout,"ClientData %sNewCommand();\n",classes[i].c_str());
     }
   
-  if (!strcmp(kitName,"Vtkcommon"))
+  if (!strcmp(kitName,"Vtkcommontcl"))
     {
     fprintf(fout,"int vtkCommand(ClientData cd, Tcl_Interp *interp,\n             int argc, char *argv[]);\n");
     fprintf(fout,"\nTcl_HashTable vtkInstanceLookup;\n");
@@ -226,7 +226,7 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
   
   fprintf(fout,"\n\nint VTK_EXPORT %s_Init(Tcl_Interp *interp)\n{\n",
           kitName);
-  if (!strcmp(kitName,"Vtkcommon"))
+  if (!strcmp(kitName,"Vtkcommontcl"))
     {
     fprintf(fout,
 	    "  vtkTclInterpStruct *info = new vtkTclInterpStruct;\n");