r318: *** empty log message ***
[ctsim.git] / src / docs.cpp
index ac7e3a69c08b3c156767ecf13c70f3127e16b205..bab1d1348183eb7ce4e494c19740ae5fbbce665d 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: docs.cpp,v 1.8 2000/12/27 03:16:02 kevin Exp $
+**  $Id: docs.cpp,v 1.9 2000/12/29 15:45:06 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
@@ -81,9 +81,7 @@ bool ImageFileDocument::OnOpenDocument(const wxString& filename)
   }
   Modify(false);
   UpdateAllViews();\r
-  ImageFileView* ifView = dynamic_cast<ImageFileView*>(GetFirstView());\r
-  if (ifView)\r
-         ifView->OnUpdate(ifView, NULL);\r
+  GetFirstView()->OnUpdate (GetFirstView(), NULL);\r
 
   return true;
 }
@@ -133,7 +131,8 @@ bool ProjectionFileDocument::OnOpenDocument(const wxString& filename)
     SetFilename(filename, true);
   }
   Modify(false);
-  UpdateAllViews();
+  UpdateAllViews();\r
+
   return true;
 }
 
@@ -176,7 +175,8 @@ bool PhantomDocument::OnOpenDocument(const wxString& filename)
   }
   m_idPhantom = m_phantom.id();
   Modify(false);
-  UpdateAllViews();
+  UpdateAllViews();\r
+
   return true;
 }
 
@@ -224,14 +224,11 @@ bool PlotFileDocument::OnOpenDocument(const wxString& filename)
       return false;
     }
     *theApp->getLog() << "Read plot file " << filename << "\n";
-    SetFilename(filename, true);\r
+    SetFilename (filename, true);\r
     m_namePlot = filename.c_str();
   }
-  Modify(false);
+  Modify (false);
   UpdateAllViews();\r
-  PlotFileView* ifView = dynamic_cast<PlotFileView*>(GetFirstView());\r
-  if (ifView)\r
-         ifView->OnUpdate(ifView, NULL);\r
 
   return true;
 }