Patch #2277 2007-12-14 07:33

dje

CodeBlocksLogEvent initialisation
Download
2277-CodeBlocksLogE.patch (630 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2007-12-16 04:44
Assigned to
 
Index: sdk_events.cpp
===================================================================
--- sdk_events.cpp    (revision 4704)
+++ sdk_events.cpp    (working copy)
@@ -70,9 +70,8 @@
 
 CodeBlocksLogEvent::CodeBlocksLogEvent(wxEventType commandType, wxWindow* window, const wxString& title, wxBitmap *icon)
     : wxEvent(wxID_ANY, commandType),
-    logger(0), logIndex(logIndex), icon(icon), title(title), window(window)
+    logger(0), logIndex(-1), icon(icon), title(title), window(window)
 {
-    logger = Manager::Get()->GetLogManager()->Slot(logIndex).GetLogger();
 }
 
 CodeBlocksLogEvent::CodeBlocksLogEvent(const CodeBlocksLogEvent& rhs)
dje 2007-12-14 08:25