X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fgraph3dview.cpp;h=03c239935903e1b30f287be797b8a6d742b2b04c;hb=c6f2bb52c598291d61d31a3eba54b84ebb338580;hp=74f51dea6f81dfb3155c2efa038835685f8d4b4a;hpb=3587fb3fb702a765b16048c88b691d4bbd0fe6fc;p=ctsim.git diff --git a/src/graph3dview.cpp b/src/graph3dview.cpp index 74f51de..03c2399 100644 --- a/src/graph3dview.cpp +++ b/src/graph3dview.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: graph3dview.cpp,v 1.6 2001/02/02 21:50:18 kevin Exp $ +** $Id: graph3dview.cpp,v 1.7 2001/02/02 23:04: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 @@ -395,7 +395,7 @@ Graph3dFileView::OnDraw (wxDC* dc) Draw(); std::ostringstream os; os << "Xangle=" << m_dXRotate << ", Yangle=" << m_dYRotate << ", Zangle=" << m_dZRotate; - m_statusBar.SetStatusText (os.str().c_str()); + m_pStatusBar->SetStatusText (os.str().c_str()); m_pCanvas->SwapBuffers(); } @@ -614,7 +614,7 @@ Graph3dFileView::OnClose (bool deleteWindow) if (deleteWindow) { // m_pFrame->Show(false); - delete m_pFrame; //->Destroy(); + delete m_pFrame; m_pFrame = NULL; // if (GetDocument() && GetDocument()->getBadFileOpen()) // ::wxYield(); // wxWindows bug workaround @@ -637,8 +637,8 @@ Graph3dFileView::CreateChildFrame (wxDocument *doc, wxView *view) #endif theApp->setIconForFrame (subframe); - m_statusBar.Create (subframe, -1); - subframe->SetStatusBar (&m_statusBar); + m_pStatusBar = new wxStatusBar (subframe, -1); + subframe->SetStatusBar (m_pStatusBar); m_pFileMenu = new wxMenu;