Commit 0631d6eb authored by Thomas Zander's avatar Thomas Zander
Browse files

Fix bug that undoing an insertion would still have the object thats not there anymore

selelected.
Also some cleanups

svn path=/trunk/koffice/; revision=604163
parent aafa6664
......@@ -91,6 +91,7 @@ void KoShapeManager::add( KoShape *shape )
void KoShapeManager::remove( KoShape *shape )
{
shape->removeShapeManager( this );
m_selection->deselect( shape );
m_aggregate4update.remove( shape );
m_tree.remove( shape );
m_shapes.removeAll(shape);
......
......@@ -19,14 +19,14 @@
#ifndef KOTOOL_H
#define KOTOOL_H
#include "KoCanvasResourceProvider.h"
#include <QString>
#include <QObject>
#include <QCursor>
#include <koffice_export.h>
#include <KoCanvasResourceProvider.h>
class KoCanvasBase;
class KoPointerEvent;
class KoViewConverter;
......
......@@ -44,6 +44,7 @@ class QTabletEvent;
class KoToolProxy {
public:
KoToolProxy() {}
virtual ~KoToolProxy(){}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment