r1864: border fixes
[ctsim.git] / src / docs.cpp
index 2c18e4a6fa76b662f72a13fa535d727c8bacf0a7..47ca4dcb160a706aeac56bff77626ffbf765dc00 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.38 2002/05/03 00:40:30 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
@@ -80,7 +80,7 @@ bool ImageFileDocument::OnOpenDocument(const wxString& filename)
   SetFilename(filename, true);  
   Modify(false);
   UpdateAllViews();
-  // getView()->OnUpdate (NULL, NULL);
+  getView()->setInitialClientSize();
   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;