OSDN Git Service

FileDiffDlg: Make shift right-left button work
authorJohan 't Hart <johanthart@gmail.com>
Sun, 14 Jun 2009 13:07:51 +0000 (15:07 +0200)
committerJohan 't Hart <johanthart@gmail.com>
Sun, 14 Jun 2009 13:07:51 +0000 (15:07 +0200)
src/TortoiseProc/FileDiffDlg.cpp

index 0bbf7fd..a8d60e0 100644 (file)
@@ -865,7 +865,8 @@ void CFileDiffDlg::OnBnClickedSwitchleftright()
                        fd.m_Action = CTGitPath::LOGACTIONS_DELETED;\r
                else if (fd.m_Action == CTGitPath::LOGACTIONS_DELETED)\r
                        fd.m_Action = CTGitPath::LOGACTIONS_ADDED;\r
-               ( CTGitPath)m_arFileList[i] = ( CTGitPath)fd;\r
+               std::swap(fd.m_StatAdd, fd.m_StatDel);\r
+               (CTGitPath&)m_arFileList[i] = fd;\r
        }\r
        Filter(sFilterString);\r
 \r