Patch #2021 2007-05-26 01:30
dmoore
Fix glitch with Find in Files search results failing to open- Download
- 2021-Fix_glitch_wit.patch (627 bytes)
Index: src/sdk/editormanager.cpp
===================================================================
--- src/sdk/editormanager.cpp (revision 3993)
+++ src/sdk/editormanager.cpp (working copy)
@@ -2305,8 +2305,9 @@
// make the filename relative
wxString filename = filesList[i];
- if (filename.StartsWith(data->searchPath))
- filename.Remove(0, data->searchPath.Length());
+ wxFileName fname(filename);
+ if(fname.MakeRelativeTo(data->searchPath))
+ filename=fname.GetFullPath();
// log it
LogSearch(filename, line + 1, control->GetLine(line));
History
biplab 2007-05-27 16:39
Applied, in modified form. Thanks for the fix.