Patch #2897 2010-01-02 19:17

techy

PrependDir() can be used for single directory only (debug20)
Download
2897-PrependDir_can.patch (687 bytes)
Category
Plugin::Bugfix
Status
Accepted
Close date
2010-01-14 08:16
Assigned to
mortenmacfly
Index: src/plugins/compilergcc/compilergcc.cpp
===================================================================
--- src/plugins/compilergcc/compilergcc.cpp    (revision 6015)
+++ src/plugins/compilergcc/compilergcc.cpp    (working copy)
@@ -3440,7 +3440,7 @@
                     AskForActiveProject();
                     project = m_Project;
                 }
-                last_error_file.PrependDir(project->GetExecutionDir());
+                last_error_file = project->GetExecutionDir() + last_error_file.GetFullPath();
                 last_error_file.MakeRelativeTo(project->GetBasePath());
                 last_error_filename = last_error_file.GetFullPath();
             }
techy 2010-01-02 19:21

With custom makefile, project->GetExecutionDir() can be a path consisting of several directories - however, PrependDir() can be used for single directory only (see the documentation of AppendDir()). This actually leads to a buggy behaviour because in this case PrependDir() does nothing.