index 2dc7c2a9e9918cf8c16079972df13ab48c4d59a2..cdcafbbc1c5d80d9b9a97dc1ac68627247027003 100644 (file)
#include "document.h"
#include "desktop.h"
-#include "desktop-handles.h"
-#include "selection.h"
#include "sp-object.h"
#include "sp-item.h"
#include "widgets/icon.h"
if ( inTree ) {
SPObject* curr = _desktop->currentLayer();
if ( curr != inTree ) {
- // TODO - move these to a function in layer-manager.cpp
- _desktop->setCurrentLayer( inTree );
- sp_desktop_selection(_desktop)->clear();
+ _mgr->setCurrentLayer( inTree );
}
} else {
- // TODO - move these to a function in layer-manager.cpp
- _desktop->setCurrentLayer( _desktop->doc()->root );
- sp_desktop_selection(_desktop)->clear();
+ _mgr->setCurrentLayer( _desktop->doc()->root );
}
}