X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fdocs.cpp;h=82a740e7b2412aeefe854aa08c4076c35b7ee39c;hb=a2bb680d159717dbd81e3ad179cb28adbf3a3e9a;hp=965f4249f544ec1e4cdc85a1cb65dafa6603b8b8;hpb=f3c7d22b4544bb1d5c4471bceded6dc5b9ed57fd;p=ctsim.git diff --git a/src/docs.cpp b/src/docs.cpp index 965f424..82a740e 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.43 2002/06/06 22:50:24 kevin Exp $ +** $Id$ ** ** 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 @@ -25,10 +25,6 @@ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ******************************************************************************/ -#ifdef __GNUG__ -// #pragma implementation -#endif - #include "wx/wxprec.h" #ifndef WX_PRECOMP @@ -189,7 +185,7 @@ BackgroundProcessingDocument::cancelRunningTasks() // ProjectionFileDocument -IMPLEMENT_DYNAMIC_CLASS(ProjectionFileDocument, BackgroundProcessingTask) +IMPLEMENT_DYNAMIC_CLASS(ProjectionFileDocument, BackgroundProcessingDocument) bool ProjectionFileDocument::OnSaveDocument(const wxString& filename) @@ -264,7 +260,7 @@ ProjectionFileDocument::Activate() // PhantomFileDocument -IMPLEMENT_DYNAMIC_CLASS(PhantomFileDocument, BackgroundProcessingTask) +IMPLEMENT_DYNAMIC_CLASS(PhantomFileDocument, BackgroundProcessingDocument) PhantomFileDocument::~PhantomFileDocument() { @@ -504,6 +500,7 @@ Graph3dFileDocument::OnOpenDocument(const wxString& filename) { SetFilename (filename, true); Modify (false); + getView()->setInitialClientSize(); UpdateAllViews(); m_bBadFileOpen = false; return true;