X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fdocs.cpp;h=3f38883388fd67a5cd37bd2de07c11f51848f783;hp=2bf3579d5bb32eb887c2573535d80bb1e6077ec8;hb=747a2ec9e0f3c49723b36da0cc77270fbecc9dfe;hpb=f13a8c004b8f182b42d9e4df2bcd7c7f030bf1ad diff --git a/src/docs.cpp b/src/docs.cpp index 2bf3579..3f38883 100644 --- a/src/docs.cpp +++ b/src/docs.cpp @@ -76,6 +76,7 @@ bool ImageFileDocument::OnOpenDocument(const wxString& filename) SetFilename(filename, true); Modify(false); getView()->setInitialClientSize(); + this->SetFilename(filename, true); UpdateAllViews(); m_bBadFileOpen = false; @@ -274,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 {