Patch #1102 2006-06-07 12:12

kkez

"Unfold on error" correction
Download
1102-Unfold_on_erro.patch (502 bytes)
Category
 
Status
Accepted
Close date
2006-06-09 13:45
Assigned to
 
Index: src/plugins/compilergcc/compilererrors.cpp
===================================================================
--- src/plugins/compilergcc/compilererrors.cpp    (revision 2530)
+++ src/plugins/compilergcc/compilererrors.cpp    (working copy)
@@ -188,9 +188,9 @@
     if (ed)
     {
         ed->Activate();
+        ed->UnfoldBlockFromLine(error.line - 1);
         ed->GotoLine(error.line - 1);
         ed->SetErrorLine(error.line - 1);
-        ed->UnfoldBlockFromLine(error.line - 1);
     }
 }
 
kkez 2006-06-07 12:20

What does this patch do:

it unfolds folded block before ed->GotoLine() is called. Previous CB revisions first called ed->GotoLine(), but if the line was hidden inside a block, GotoLine would show the line where the folded block start.