X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fdocs.cpp;h=5a73fe819f39ed0c337e040d64e0aeaf8b4c5b83;hb=67e0b59f7b40b2c2f1d0587b24b4ecf4881b3824;hp=2c18e4a6fa76b662f72a13fa535d727c8bacf0a7;hpb=0e305a6bd11df323b21c77f16159ef365b6846ff;p=ctsim.git diff --git a/src/docs.cpp b/src/docs.cpp index 2c18e4a..5a73fe8 100644 --- a/src/docs.cpp +++ b/src/docs.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: docs.cpp,v 1.37 2002/04/30 18:13:40 kevin Exp $ +** $Id: docs.cpp,v 1.39 2002/06/02 17:57:02 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 @@ -79,8 +79,8 @@ bool ImageFileDocument::OnOpenDocument(const wxString& filename) *theApp->getLog() << "Read image file " << filename << "\n"; SetFilename(filename, true); Modify(false); + getView()->setInitialClientSize(); UpdateAllViews(); - // getView()->OnUpdate (NULL, NULL); m_bBadFileOpen = false; return true; @@ -226,6 +226,7 @@ ProjectionFileDocument::OnOpenDocument(const wxString& filename) SetFilename(filename, true); Modify(false); UpdateAllViews(); + getView()->setInitialClientSize(); m_bBadFileOpen = false; return true; @@ -292,7 +293,6 @@ PhantomFileDocument::OnOpenDocument(const wxString& filename) m_idPhantom = m_phantom.id(); Modify(false); UpdateAllViews(); - //GetFirstView()->OnUpdate (GetFirstView(), NULL); m_bBadFileOpen = false; return true;