OSDN Git Service
(root)
/
tortoisegit
/
TortoiseGitJp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2b783
)
FileDiffDlg: Make shift right-left button work
author
Johan 't Hart
<johanthart@gmail.com>
Sun, 14 Jun 2009 13:07:51 +0000
(15:07 +0200)
committer
Johan 't Hart
<johanthart@gmail.com>
Sun, 14 Jun 2009 13:07:51 +0000
(15:07 +0200)
src/TortoiseProc/FileDiffDlg.cpp
patch
|
blob
|
history
diff --git
a/src/TortoiseProc/FileDiffDlg.cpp
b/src/TortoiseProc/FileDiffDlg.cpp
index
0bbf7fd
..
a8d60e0
100644
(file)
--- a/
src/TortoiseProc/FileDiffDlg.cpp
+++ b/
src/TortoiseProc/FileDiffDlg.cpp
@@
-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