r158: *** empty log message ***
[ctsim.git] / src / ctsim.cpp
index 71b053906de0d2fa31026a1df20117b133e23bde..533f324037a8eb343d1b563dc61244e18ff0de01 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: ctsim.cpp,v 1.7 2000/07/20 11:17:31 kevin Exp $
+**  $Id: ctsim.cpp,v 1.8 2000/07/22 15:45:33 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -196,10 +196,10 @@ MainFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
 void 
 MainFrame::OnCreatePhantom(wxCommandEvent& WXUNUSED(event))
 {
-    DialogGetPhantom dialogPhantom (this, Phantom::PHM_HERMAN_STR);
+    DialogGetPhantom dialogPhantom (this, Phantom::PHM_HERMAN);
     int dialogReturn = dialogPhantom.ShowModal();
     if (dialogReturn == wxID_OK) {
-      wxString selection = dialogPhantom.getPhantom();
+      wxString selection (dialogPhantom.getPhantom());
       *theApp->getLog() << "Selected phantom " << selection.c_str() << "\n";
       wxString filename = selection + ".phm";
       theApp->getDocManager()->CreateDocument(filename, wxDOC_SILENT);