r2101: Committing for 3.5.4
[ctsim.git] / src / docs.cpp
index 2c18e4a6fa76b662f72a13fa535d727c8bacf0a7..15ef98c1a1680d5a8a0927a36f15a3e38e6fd01f 100644 (file)
@@ -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.40 2002/06/02 19:01:58 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;
@@ -225,6 +225,7 @@ ProjectionFileDocument::OnOpenDocument(const wxString& filename)
     *theApp->getLog() << "Read projection file " << filename << "\n";
   SetFilename(filename, true);
   Modify(false);
+  getView()->setInitialClientSize();
   UpdateAllViews();
   m_bBadFileOpen = false;
   
@@ -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;