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:
20f9e64
)
Provide sensible default column widths for log. Defaults for when there is nothing...
author
Colin Law
<colin@clanlaw.org.uk>
Fri, 30 Jan 2009 21:22:25 +0000
(21:22 +0000)
committer
Frank Li
<lznuaa@gmail.com>
Sun, 1 Feb 2009 08:11:11 +0000
(16:11 +0800)
src/TortoiseProc/GitLogListBase.cpp
patch
|
blob
|
history
diff --git
a/src/TortoiseProc/GitLogListBase.cpp
b/src/TortoiseProc/GitLogListBase.cpp
index
9c9d86d
..
c9cf2dd
100644
(file)
--- a/
src/TortoiseProc/GitLogListBase.cpp
+++ b/
src/TortoiseProc/GitLogListBase.cpp
@@
-236,6
+236,18
@@
void CGitLogListBase::ResizeAllListCtrlCols()
regentry.Format( _T("Software\\TortoiseGit\\log\\ColWidth%d"), col);
\r
CRegDWORD regwidth(regentry, 0);
\r
int cx = regwidth;
\r
+ if ( cx == 0 )
\r
+ {
\r
+ // no saved value, setup sensible defaults
\r
+ if (col == this->LOGLIST_MESSAGE)
\r
+ {
\r
+ cx = LOGLIST_MESSAGE_MIN;
\r
+ }
\r
+ else
\r
+ {
\r
+ cx = ICONITEMBORDER+16*4;
\r
+ }
\r
+ }
\r
if (cx < nMinimumWidth)
\r
{
\r
cx = nMinimumWidth;
\r