** 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
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