X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fdialogs.cpp;h=e67357f0e2238399019692749fdaca04e7367f9e;hp=75596d4c939291e94394a78d6f1bd59a59f796b9;hb=9bd89ec66ff2d0cbe188730fbcad67df4e19c9b5;hpb=f64eb7bcd1816ae49d7d240acfbe65b499a55b27 diff --git a/src/dialogs.cpp b/src/dialogs.cpp index 75596d4..e67357f 100644 --- a/src/dialogs.cpp +++ b/src/dialogs.cpp @@ -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