From 725175d65dc27f63201cad30315ad2dec5ecf40f Mon Sep 17 00:00:00 2001 From: Sup Yut Sum Date: Tue, 5 Feb 2013 22:57:46 +0800 Subject: [PATCH] Validate the drawing area after the custom painting of the control This shouldn't be necessary, but it appears some plugins can mess up the painting somehow See this thread for more details: http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3011957 Based on TortoiseSVN revision 23876 Signed-off-by: Sup Yut Sum --- src/Git/GitStatusListCtrl.cpp | 3 ++- src/Utils/MiscUI/FilterEdit.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Git/GitStatusListCtrl.cpp b/src/Git/GitStatusListCtrl.cpp index b69fc953a..68a636979 100644 --- a/src/Git/GitStatusListCtrl.cpp +++ b/src/Git/GitStatusListCtrl.cpp @@ -1,7 +1,7 @@ // TortoiseGit - a Windows shell extension for easy version control // Copyright (C) 2008-2013 - TortoiseGit -// Copyright (C) 2003-2008 - TortoiseSVN +// Copyright (C) 2003-2008, 2013 - TortoiseSVN // Copyright (C) 2010-2012 Sven Strickroth // This program is free software; you can redistribute it and/or @@ -3343,6 +3343,7 @@ void CGitStatusListCtrl::OnPaint() } ReleaseDC(pDC); } + ValidateRect(NULL); } // prevent users from extending our hidden (size 0) columns diff --git a/src/Utils/MiscUI/FilterEdit.cpp b/src/Utils/MiscUI/FilterEdit.cpp index 17280f1ae..382730185 100644 --- a/src/Utils/MiscUI/FilterEdit.cpp +++ b/src/Utils/MiscUI/FilterEdit.cpp @@ -1,7 +1,7 @@ // TortoiseGit - a Windows shell extension for easy version control // Copyright (C) 2012 - TortoiseGit -// Copyright (C) 2007,2012 - TortoiseSVN +// Copyright (C) 2007, 2012-2013 - TortoiseSVN // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -348,6 +348,7 @@ void CFilterEdit::OnPaint() Default(); DrawDimText(); + ValidateRect(NULL); return; } -- 2.11.4.GIT