mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
gui/scan_setup:fix override gotoXXLongitude & gotoXXLatitude with uninitialized zapit_lat or zapit_long
This commit is contained in:
@@ -1389,8 +1389,10 @@ void CScanSetup::saveScanSetup()
|
||||
dprintf(DEBUG_NORMAL, "error while saving scan-settings!\n");
|
||||
|
||||
//CServiceManager::getInstance()->SaveMotorPositions();
|
||||
zapitCfg.gotoXXLatitude = strtod(zapit_lat, NULL);
|
||||
zapitCfg.gotoXXLongitude = strtod(zapit_long, NULL);
|
||||
if(zapit_lat[0] != '#')//check if var ok
|
||||
zapitCfg.gotoXXLatitude = strtod(zapit_lat, NULL);
|
||||
if(zapit_long[0] != '#')//check if var ok
|
||||
zapitCfg.gotoXXLongitude = strtod(zapit_long, NULL);
|
||||
|
||||
CZapit::getInstance()->SetConfig(&zapitCfg);
|
||||
CFEManager::getInstance()->saveSettings(true);
|
||||
|
Reference in New Issue
Block a user