r1024: no message
[ctsim.git] / src / dialogs.cpp
index 75596d4c939291e94394a78d6f1bd59a59f796b9..e67357f0e2238399019692749fdaca04e7367f9e 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: dialogs.cpp,v 1.55 2001/09/24 09:40:42 kevin Exp $
+**  $Id: dialogs.cpp,v 1.56 2001/09/24 11:46:17 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
@@ -782,12 +782,16 @@ DialogGetProjectionParameters::getNView ()
 unsigned int
 DialogGetProjectionParameters::getOffsetView ()
 {
-       wxString strCtrl = m_pTextCtrlOffsetView->GetValue();
-       unsigned long lValue;
-       if (strCtrl.ToULong (&lValue))
-         return lValue;
-       else
-         return (m_iDefaultOffsetView);
+  if (theApp->getAdvancedOptions()) {
+         wxString strCtrl = m_pTextCtrlOffsetView->GetValue();
+         unsigned long lValue;
+         if (strCtrl.ToULong (&lValue))
+           return lValue;
+         else
+           return (m_iDefaultOffsetView);
+  }
+  else
+    return 0;
 }
 
 unsigned int