[BUG_FIX] Fix some semantic problem in source code. They causes the bug eventually.

Signed-off-by: Don HO <don.h@free.fr>

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@496 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2009-06-18 20:12:51 +00:00
parent e7e4c9840e
commit 63e9faeae7
2 changed files with 2 additions and 2 deletions

View File

@ -1321,7 +1321,7 @@ int FindReplaceDlg::processAll(ProcessOperation op, const TCHAR *txt2find, const
endPosition = cr.cpMax;
}
if (ProcessMarkAllExt && colourStyleID != -1)
if ((op == ProcessMarkAllExt) && (colourStyleID != -1))
{
startPosition = 0;
endPosition = docLength;

View File

@ -212,7 +212,7 @@ private :
COLORREF textColor = darkGrey;
int imgStyle = ILD_SELECTED;
if (lpDrawItemStruct->itemState && ODS_SELECTED)
if (lpDrawItemStruct->itemState & ODS_SELECTED)
{
imgStyle = ILD_TRANSPARENT;
textColor = black;