summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
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;