X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fgraph3dview.cpp;h=71ae71b77e79471b421d4b49874278fed0344bbc;hp=9098e25faec12e0eb2eb4b37fc3f6680727ec96b;hb=792cae55ba2e9ef41e963cfe58f1504f996bb57c;hpb=2ada42368dc805ec44c364ce933dc9591a3c6f0b diff --git a/src/graph3dview.cpp b/src/graph3dview.cpp index 9098e25..71ae71b 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.11 2001/02/04 22:58:41 kevin Exp $ +** $Id: graph3dview.cpp,v 1.12 2001/02/08 22:38:23 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 @@ -402,13 +402,14 @@ Graph3dFileView::OnSmooth (wxCommandEvent& event) void Graph3dFileView::OnDraw (wxDC* dc) { -#ifndef __WXMOTIF__ - if (! m_pCanvas->GetContext()) return; -#endif - if (! m_pCanvas) return; m_pCanvas->SetCurrent(); + +#ifndef __WXMOTIF__ + // if (! m_pCanvas->GetContext()) return; +#endif + Draw(); std::ostringstream os; os << "Xangle=" << m_dXRotate << ", Yangle=" << m_dYRotate << ", Zangle=" << m_dZRotate;