[BUG_FIXED] (Author: Etienne Boireau) Fix Global colors not applied to all text of the "Find result" pane.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1283 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2014-10-31 21:22:43 +00:00
parent 9dd5e62802
commit 2c9ad7ac27

View File

@ -2537,6 +2537,25 @@ void Finder::setFinderStyle()
{
Style & styleDefault = stylers.getStyler(iStyleDefault);
_scintView.setStyle(styleDefault);
GlobalOverride & go = _scintView._pParameter->getGlobalOverrideStyle();
if (go.isEnable())
{
int iGlobalOverride = stylers.getStylerIndexByName(TEXT("Global override"));
if (iGlobalOverride != -1)
{
Style & styleGlobalOverride = stylers.getStyler(iGlobalOverride);
if (go.enableFg)
{
styleDefault._fgColor = styleGlobalOverride._fgColor;
}
if (go.enableBg)
{
styleDefault._bgColor = styleGlobalOverride._bgColor;
}
}
}
_scintView.execute(SCI_STYLESETFORE, SCE_SEARCHRESULT_DEFAULT, styleDefault._fgColor);
_scintView.execute(SCI_STYLESETBACK, SCE_SEARCHRESULT_DEFAULT, styleDefault._bgColor);
}