From fbdc8b84ff670c684dafc7d7d403ed01e7077e70 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Sat, 13 Apr 2013 18:13:17 +0200 Subject: Replaced casting macros for EventContext tree; added contructors. (bzr r11608.1.96) --- src/draw-context.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/draw-context.cpp') 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; -- cgit v1.2.3