Commit a9b4b3f0 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

BUG: Fix logic

parent 9aaac6a9
......@@ -39,7 +39,7 @@ PURPOSE. See the above copyright notice for more information.
#include <sys/stat.h>
#endif
#ifndef VTK_USE_TK
#ifdef VTK_USE_TK
# include "vtkTk.h"
#else
# include "vtkTcl.h"
......@@ -141,7 +141,7 @@ main(int argc, char **argv)
vtkstd::string av0 = vtksys::SystemTools::CollapseFullPath(argv[0]);
Tcl_FindExecutable(av0.c_str());
#ifndef VTK_USE_TK
#ifdef VTK_USE_TK
Tk_Main(argc, argv, Tcl_AppInit);
#else
Tcl_Main(argc, argv, Tcl_AppInit);
......@@ -382,7 +382,7 @@ int Tcl_AppInit(Tcl_Interp *interp)
return TCL_ERROR;
}
#ifndef VTK_USE_TK
#ifdef VTK_USE_TK
if (Tk_Init(interp) == TCL_ERROR)
{
return TCL_ERROR;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment