X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fviews.cpp;h=9352b4c8b1ecb2e67584166b846cb9090843d2a3;hp=ba400e708a4cf336038b2d2bc07dcdbe3276b3fd;hb=f692b2d39f56ffbafc04283f32233c098aa2978b;hpb=83ee377ee0b61092ec1522ac1e1361640f74fa06 diff --git a/src/views.cpp b/src/views.cpp index ba400e7..9352b4c 100644 --- a/src/views.cpp +++ b/src/views.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: views.cpp,v 1.94 2001/01/31 01:01:22 kevin Exp $ +** $Id: views.cpp,v 1.95 2001/02/02 00:46:38 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 @@ -1125,8 +1125,13 @@ ImageFileView::OnConvert3d (wxCommandEvent& event) Graph3dFileDocument* pGraph3d = theApp->newGraph3dDoc(); pGraph3d->setBadFileOpen(); pGraph3d->createFromImageFile (rIF); - pGraph3d->getView()->getFrame()->SetClientSize (200, 200); + pGraph3d->getView()->OnUpdate (this, NULL); + pGraph3d->UpdateAllViews(); + pGraph3d->getView()->getFrame()->SetClientSize (400, 400); pGraph3d->getView()->getFrame()->Show (true); + GetDocumentManager()->ActivateView (pGraph3d->getView(), true, false); + ::wxYield(); + pGraph3d->getView()->getCanvas()->SetFocus(); } #endif