diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 4ef057bb7..77a8ee21a 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3497,12 +3497,12 @@ void Notepad_plus::addHotSpot(ScintillaEditView* view) pView->execute(SCI_INDICATORCLEARRANGE, startEncoded + startPos, lenEncoded); startWide += lenWide; startEncoded += lenEncoded; + if ((startWide >= wideTextLen) || ((startEncoded + startPos) >= endPos)) break; } - assert ((startEncoded + startPos) == endPos); - assert (startWide == wideTextLen); } + delete[] wideText; } diff --git a/PowerEditor/src/ScintillaComponent/FunctionCallTip.h b/PowerEditor/src/ScintillaComponent/FunctionCallTip.h index 98b7d5684..8cdb1c001 100644 --- a/PowerEditor/src/ScintillaComponent/FunctionCallTip.h +++ b/PowerEditor/src/ScintillaComponent/FunctionCallTip.h @@ -27,8 +27,8 @@ public: ~FunctionCallTip() {/* cleanup(); */}; void setLanguageXML(TiXmlElement * pXmlKeyword); //set calltip keyword node bool updateCalltip(int ch, bool needShown = false); //Ch is character typed, or 0 if another event occured. NeedShown is true if calltip should be attempted to displayed. Return true if calltip was made visible - void showNextOverload(); //show next overlaoded parameters - void showPrevOverload(); //show prev overlaoded parameters + void showNextOverload(); //show next overloaded parameters + void showPrevOverload(); //show prev overloaded parameters bool isVisible() { return _pEditView?_pEditView->execute(SCI_CALLTIPACTIVE) == TRUE:false; }; //true if calltip visible void close(); //Close calltip if visible