OSDN Git Service

Bugfix: Don't prefix subdirectories with dot in ColPathGet.
authorPerry Rapp <elsapo@users.sourceforge.net>
Sat, 23 Aug 2003 20:36:38 +0000 (20:36 +0000)
committerPerry Rapp <elsapo@users.sourceforge.net>
Sat, 23 Aug 2003 20:36:38 +0000 (20:36 +0000)
Src/DirViewColItems.cpp
Src/readme.txt

index 0a5132b..2c8ca08 100644 (file)
@@ -47,9 +47,10 @@ static CString ColNameGet(const DIFFITEM & di)
 }
 static CString ColPathGet(const DIFFITEM & di)
 {
-       CString s = _T(".");
-       s += di.sSubdir;
-       return s;
+       if (di.sSubdir.IsEmpty())
+               return _T(".");
+       else
+               return di.sSubdir;
 }
 static CString ColStatusGet(const DIFFITEM & di)
 {
index a4cf9bf..1181417 100644 (file)
@@ -15,6 +15,8 @@
    DirViewColItems.cpp DirViewColItems.h
  Bugfix: CDiffContext::AddDiff was not setting diff context subdir from argument.
   WinMerge:: DiffContext.cpp
+ Bugfix: Don't prefix subdirectories with dot in ColPathGet.
+  WinMerge: DirViewColItems.cpp
 
 2003-08-22 Kimmo
  PATCH: [ 787495 ] Create diffutils class (CDiffWrapper)