r506: *** empty log message ***
[ctsim.git] / src / graph3dview.cpp
index 9098e25faec12e0eb2eb4b37fc3f6680727ec96b..71ae71b77e79471b421d4b49874278fed0344bbc 100644 (file)
@@ -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;