X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fdocs.cpp;h=bab1d1348183eb7ce4e494c19740ae5fbbce665d;hp=ac7e3a69c08b3c156767ecf13c70f3127e16b205;hb=5c6b29ab4885308cc3381af6e0a68f4804956d2e;hpb=c24c1c0721df40e77822ad2b9ec01a944012ff42 diff --git a/src/docs.cpp b/src/docs.cpp index ac7e3a6..bab1d13 100644 --- a/src/docs.cpp +++ b/src/docs.cpp @@ -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(); - ImageFileView* ifView = dynamic_cast(GetFirstView()); - if (ifView) - ifView->OnUpdate(ifView, NULL); + GetFirstView()->OnUpdate (GetFirstView(), NULL); return true; } @@ -133,7 +131,8 @@ bool ProjectionFileDocument::OnOpenDocument(const wxString& filename) SetFilename(filename, true); } Modify(false); - UpdateAllViews(); + UpdateAllViews(); + return true; } @@ -176,7 +175,8 @@ bool PhantomDocument::OnOpenDocument(const wxString& filename) } m_idPhantom = m_phantom.id(); Modify(false); - UpdateAllViews(); + UpdateAllViews(); + return true; } @@ -224,14 +224,11 @@ bool PlotFileDocument::OnOpenDocument(const wxString& filename) return false; } *theApp->getLog() << "Read plot file " << filename << "\n"; - SetFilename(filename, true); + SetFilename (filename, true); m_namePlot = filename.c_str(); } - Modify(false); + Modify (false); UpdateAllViews(); - PlotFileView* ifView = dynamic_cast(GetFirstView()); - if (ifView) - ifView->OnUpdate(ifView, NULL); return true; }