zapit/src/getservices.cpp: bugfix, check satellite position when

adding transponder to satelliteTransponders


Origin commit data
------------------
Branch: ni/coolstream
Commit: cb692c0274
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-22 (Sun, 22 Apr 2012)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-04-22 15:25:36 +04:00
parent f3eae17557
commit 51e63ea265

View File

@@ -1076,9 +1076,11 @@ void CServiceManager::UpdateSatTransponders(t_satellite_position satellitePositi
break;
}
}
ret = stransponders.insert(transponder_pair_t(tI->first, tI->second));
if (ret.second == false)
tI->second.dump("[zapit] duplicate in sat transponders:");
if (tI->second.satellitePosition == satellitePosition) {
ret = stransponders.insert(transponder_pair_t(tI->first, tI->second));
if (ret.second == false)
tI->second.dump("[zapit] duplicate in sat transponders:");
}
}
}