From 294640ac53df9e1fc697b007aca1e00259b5049a Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 14 Nov 2014 13:37:57 +0300 Subject: [PATCH] Fix for creation of edges in sketch on Squeese: Events_MessageGroup had different instances in Events library and Model plugin. Reproduced only on Debian Squeeze. --- src/Events/CMakeLists.txt | 1 + src/Events/Events_MessageGroup.cpp | 13 +++++++++++++ src/Events/Events_MessageGroup.h | 9 ++------- 3 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 src/Events/Events_MessageGroup.cpp diff --git a/src/Events/CMakeLists.txt b/src/Events/CMakeLists.txt index b33e85166..52369991c 100644 --- a/src/Events/CMakeLists.txt +++ b/src/Events/CMakeLists.txt @@ -12,6 +12,7 @@ SET(PROJECT_HEADERS SET(PROJECT_SOURCES Events_Message.cpp + Events_MessageGroup.cpp Events_Listener.cpp Events_Loop.cpp Events_Error.cpp diff --git a/src/Events/Events_MessageGroup.cpp b/src/Events/Events_MessageGroup.cpp new file mode 100644 index 000000000..799f71e69 --- /dev/null +++ b/src/Events/Events_MessageGroup.cpp @@ -0,0 +1,13 @@ +// File: Events_MessageGroup.cpp +// Created: Thu Mar 13 2014 +// Author: Mikhail PONIKAROV + +#include + +Events_MessageGroup::Events_MessageGroup(const Events_ID theID, const void* theSender) +: Events_Message(theID, theSender) +{} + +Events_MessageGroup::~Events_MessageGroup() +{} + diff --git a/src/Events/Events_MessageGroup.h b/src/Events/Events_MessageGroup.h index 46c765cce..b41d4ffcb 100644 --- a/src/Events/Events_MessageGroup.h +++ b/src/Events/Events_MessageGroup.h @@ -21,14 +21,9 @@ class EVENTS_EXPORT Events_MessageGroup : public Events_Message public: //! Creates the message - Events_MessageGroup(const Events_ID theID, const void* theSender = 0) - : Events_Message(theID, theSender) - { - } + Events_MessageGroup(const Events_ID theID, const void* theSender = 0); //! do nothing in the destructor yet - virtual ~Events_MessageGroup() - { - } + virtual ~Events_MessageGroup(); //! Creates a new empty group (to store it in the loop before flush) virtual boost::shared_ptr newEmpty() = 0; -- 2.39.2