X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fdocs.cpp;h=3f38883388fd67a5cd37bd2de07c11f51848f783;hb=dca8d386ab6a4e33050b456cff4547d6adfdf249;hp=028c8214fe24841e2700209bbd4c6f670620d534;hpb=f7ee98f7d964ed361068179f0e7ea4475ed1abdf;p=ctsim.git diff --git a/src/docs.cpp b/src/docs.cpp index 028c821..3f38883 100644 --- a/src/docs.cpp +++ b/src/docs.cpp @@ -7,9 +7,7 @@ ** Date Started: July 2000 ** ** This is part of the CTSim program -** Copyright (c) 1983-2001 Kevin Rosenberg -** -** $Id$ +** Copyright (c) 1983-2009 Kevin Rosenberg ** ** 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 @@ -78,6 +76,7 @@ bool ImageFileDocument::OnOpenDocument(const wxString& filename) SetFilename(filename, true); Modify(false); getView()->setInitialClientSize(); + this->SetFilename(filename, true); UpdateAllViews(); m_bBadFileOpen = false; @@ -276,7 +275,7 @@ PhantomFileDocument::OnOpenDocument(const wxString& constFilename) wxString filename (constFilename); if (wxFile::Exists (filename)) { - m_phantom.createFromFile (filename.mb_str(wxConvUTF8)); + m_phantom.createFromPhmFile (filename.mb_str(wxConvUTF8)); if (theApp->getVerboseLogging()) *theApp->getLog() << _T("Read phantom file ") << filename << _T("\n"); } else {