[BUG_FIXED] Fix the bug that Global Styles are not loaded completely in Stylers Configurator.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1145 f5eea248-9336-0410-98b8-ebc06183d4e3remotes/trunk
parent
9594e0baf8
commit
d320a022d3
|
@ -2213,13 +2213,10 @@ void Notepad_plus::addHotSpot()
|
|||
hotspotStyle._styleID = static_cast<int>(style_hotspot);
|
||||
_pEditView->execute(SCI_STYLEGETFONT, idStyleMSBunset, (LPARAM)fontNameA);
|
||||
TCHAR *generic_fontname = new TCHAR[128];
|
||||
#ifdef UNICODE
|
||||
|
||||
WcharMbcsConvertor *wmc = WcharMbcsConvertor::getInstance();
|
||||
const wchar_t * fontNameW = wmc->char2wchar(fontNameA, _nativeLangSpeaker.getLangEncoding());
|
||||
lstrcpy(generic_fontname, fontNameW);
|
||||
#else
|
||||
lstrcpy(generic_fontname, fontNameA);
|
||||
#endif
|
||||
hotspotStyle._fontName = generic_fontname;
|
||||
|
||||
hotspotStyle._fgColor = _pEditView->execute(SCI_STYLEGETFORE, idStyleMSBunset);
|
||||
|
|
|
@ -385,7 +385,7 @@ public:
|
|||
return _styleArray[index];
|
||||
};
|
||||
|
||||
bool hasEnoughSpace() {return (_nbStyler < SCE_USER_STYLE_TOTAL_STYLES);};
|
||||
bool hasEnoughSpace() {return (_nbStyler < SCE_STYLE_ARRAY_SIZE);};
|
||||
void addStyler(int styleID, TiXmlNode *styleNode);
|
||||
|
||||
void addStyler(int styleID, const TCHAR *styleName) {
|
||||
|
|
Loading…
Reference in New Issue