From fff91e099b7188bd5feffa42949222be533f283f Mon Sep 17 00:00:00 2001 From: sdottaka Date: Sun, 3 Mar 2013 23:39:58 +0900 Subject: [PATCH] Fix file change detection failure --- Src/DirDoc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/DirDoc.cpp b/Src/DirDoc.cpp index 39582e20f..67f50e7db 100644 --- a/Src/DirDoc.cpp +++ b/Src/DirDoc.cpp @@ -581,8 +581,8 @@ UIntPtr CDirDoc::FindItemFromPaths(const String& pathLeft, const String& pathRig if (string_compare_nocase(file1, file2) != 0) return NULL; - String path1(pathLeft, pathLeft.length() - file1.length()); // include trailing backslash - String path2(pathRight, pathRight.length() - file2.length()); // include trailing backslash + String path1(pathLeft, 0, pathLeft.length() - file1.length()); // include trailing backslash + String path2(pathRight, 0, pathRight.length() - file2.length()); // include trailing backslash // Path can contain (because of difftools?) '/' and '\' // so for comparing purposes, convert whole path to use '\\' -- 2.11.0