summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-13 16:13:17 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-13 16:13:17 +0000
commitfbdc8b84ff670c684dafc7d7d403ed01e7077e70 (patch)
tree964a82e4e94d8d6602e90893ac51ac9e2f7ec362 /src/draw-context.cpp
parentMade factory a template. (diff)
downloadinkscape-fbdc8b84ff670c684dafc7d7d403ed01e7077e70.tar.gz
inkscape-fbdc8b84ff670c684dafc7d7d403ed01e7077e70.zip
Replaced casting macros for EventContext tree; added contructors.
(bzr r11608.1.96)
Diffstat (limited to 'src/draw-context.cpp')
-rw-r--r--src/draw-context.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index cdb0aeeaa..7e192f7ad 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -99,9 +99,11 @@ CDrawContext::CDrawContext(SPDrawContext* drawcontext) : CEventContext(drawconte
SPDrawContext::SPDrawContext() : SPEventContext() {
SPDrawContext* dc = this;
- dc->cdrawcontext = new CDrawContext(dc);
- delete dc->ceventcontext;
- dc->ceventcontext = dc->cdrawcontext;
+ //dc->cdrawcontext = new CDrawContext(dc);
+ //delete dc->ceventcontext;
+ //dc->ceventcontext = dc->cdrawcontext;
+ dc->cdrawcontext = 0;
+ types.insert(typeid(SPDrawContext));
dc->selection = 0;
dc->grab = 0;