StelObjectMgr.cpp   StelObjectMgr.cpp 
skipping to change at line 159 skipping to change at line 159
return sobj; return sobj;
} }
/************************************************************************* /*************************************************************************
Find in a "clever" way an object from its equatorial position Find in a "clever" way an object from its equatorial position
*************************************************************************/ *************************************************************************/
StelObjectP StelObjectMgr::cleverFind(const StelCore* core, int x, int y) c onst StelObjectP StelObjectMgr::cleverFind(const StelCore* core, int x, int y) c onst
{ {
Vec3d v; Vec3d v;
core->getProjection(StelCore::FrameJ2000)->unProject(x,y,v); if (core->getProjection(StelCore::FrameJ2000)->unProject(x,y,v))
return cleverFind(core, v); return cleverFind(core, v);
return StelObjectP();
} }
/************************************************************************* /*************************************************************************
Notify that we want to unselect any object Notify that we want to unselect any object
*************************************************************************/ *************************************************************************/
void StelObjectMgr::unSelect(void) void StelObjectMgr::unSelect(void)
{ {
lastSelectedObjects.clear(); lastSelectedObjects.clear();
// Send the event to every StelModule // Send the event to every StelModule
skipping to change at line 199 skipping to change at line 200
QList<StelObjectP> objs; QList<StelObjectP> objs;
objs.push_back(obj); objs.push_back(obj);
return setSelectedObject(objs, action); return setSelectedObject(objs, action);
} }
/************************************************************************* /*************************************************************************
Notify that we want to select the given objects Notify that we want to select the given objects
*************************************************************************/ *************************************************************************/
bool StelObjectMgr::setSelectedObject(const QList<StelObjectP>& objs, StelM odule::StelModuleSelectAction action) bool StelObjectMgr::setSelectedObject(const QList<StelObjectP>& objs, StelM odule::StelModuleSelectAction action)
{ {
lastSelectedObjects=objs; if (action==StelModule::AddToSelection)
lastSelectedObjects.append(objs);
else
lastSelectedObjects = objs;
// Send the event to every StelModule // Send the event to every StelModule
foreach (StelModule* iter, StelApp::getInstance().getModuleMgr().get AllModules()) foreach (StelModule* iter, StelApp::getInstance().getModuleMgr().get AllModules())
{ {
iter->selectedObjectChangeCallBack(action); iter->selectedObjectChangeCallBack(action);
} }
return true; return true;
} }
/************************************************************************* /*************************************************************************
 End of changes. 2 change blocks. 
3 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/