[BUG_FIXED]Fix (partially) hotspot style font problem.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@491 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
327797f5a3
commit
782dbaf7fd
|
@ -2914,11 +2914,10 @@ void Notepad_plus::addHotSpot(bool docIsModifing)
|
|||
hotspotStylers.push_back(p);
|
||||
int activeFG = 0xFF0000;
|
||||
|
||||
//TCHAR fontName[256];
|
||||
Style hotspotStyle;
|
||||
|
||||
hotspotStyle._styleID = style_hotspot;
|
||||
//_pEditView->execute(SCI_STYLEGETFONT, idStyle, (LPARAM)fontName);
|
||||
_pEditView->execute(SCI_STYLEGETFONT, idStyle, (LPARAM)hotspotStyle._fontName);
|
||||
hotspotStyle._fgColor = _pEditView->execute(SCI_STYLEGETFORE, idStyle);
|
||||
hotspotStyle._bgColor = _pEditView->execute(SCI_STYLEGETBACK, idStyle);
|
||||
hotspotStyle._fontSize = _pEditView->execute(SCI_STYLEGETSIZE, idStyle);
|
||||
|
|
|
@ -386,7 +386,7 @@ void ScintillaEditView::setSpecialStyle(Style & styleToSet)
|
|||
if ( styleToSet._colorStyle & COLORSTYLE_BACKGROUND )
|
||||
execute(SCI_STYLESETBACK, styleID, styleToSet._bgColor);
|
||||
|
||||
if ((!styleToSet._fontName)||(lstrcmp(styleToSet._fontName, TEXT(""))))
|
||||
if (styleToSet._fontName && lstrcmp(styleToSet._fontName, TEXT("")) != 0)
|
||||
{
|
||||
#ifdef UNICODE
|
||||
WcharMbcsConvertor *wmc = WcharMbcsConvertor::getInstance();
|
||||
|
|
|
@ -23,8 +23,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|||
#include <string>
|
||||
#include "Notepad_plus.h"
|
||||
#include "Window.h"
|
||||
#include <commctrl.h>
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
Loading…
Reference in New Issue