Patch #3183 2011-07-09 19:18

deadok

fix to bug #018223
Download
3183-fix_to_bug_018.patch (780 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2011-08-13 09:15
Assigned to
mortenmacfly
Index: src/plugins/compilergcc/compilergcc.cpp
===================================================================
--- src/plugins/compilergcc/compilergcc.cpp    (revision 7282)
+++ src/plugins/compilergcc/compilergcc.cpp    (working copy)
@@ -2962,11 +2964,11 @@
     }
     else
     {
-        Compiler* compiler = CompilerFactory::GetCompiler(m_CompilerId);
+        Compiler* compiler = CompilerFactory::GetCompiler(bt->GetCompilerID());
         if (compiler)
             compiler->Init(m_Project);
 
-        DirectCommands dc(this, CompilerFactory::GetCompiler(bt->GetCompilerID()), m_Project, m_PageIndex);
+        DirectCommands dc(this, compiler, m_Project, m_PageIndex);
         wxArrayString compile = dc.CompileFile(bt, pf);
         AddToCommandQueue(compile);
     }