mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 16:24:27 +02:00
[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:
parent
e7e4c9840e
commit
63e9faeae7
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user