[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-ebc06183d4e3remotes/x64
parent
e7e4c9840e
commit
63e9faeae7
|
@ -1321,7 +1321,7 @@ int FindReplaceDlg::processAll(ProcessOperation op, const TCHAR *txt2find, const
|
||||||
endPosition = cr.cpMax;
|
endPosition = cr.cpMax;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ProcessMarkAllExt && colourStyleID != -1)
|
if ((op == ProcessMarkAllExt) && (colourStyleID != -1))
|
||||||
{
|
{
|
||||||
startPosition = 0;
|
startPosition = 0;
|
||||||
endPosition = docLength;
|
endPosition = docLength;
|
||||||
|
|
|
@ -212,7 +212,7 @@ private :
|
||||||
COLORREF textColor = darkGrey;
|
COLORREF textColor = darkGrey;
|
||||||
int imgStyle = ILD_SELECTED;
|
int imgStyle = ILD_SELECTED;
|
||||||
|
|
||||||
if (lpDrawItemStruct->itemState && ODS_SELECTED)
|
if (lpDrawItemStruct->itemState & ODS_SELECTED)
|
||||||
{
|
{
|
||||||
imgStyle = ILD_TRANSPARENT;
|
imgStyle = ILD_TRANSPARENT;
|
||||||
textColor = black;
|
textColor = black;
|
||||||
|
|
Loading…
Reference in New Issue