Add an assert for Issue 1784 (crash signature 450)

This commit is contained in:
Inusaito Sayori
2015-01-07 00:46:01 -05:00
parent 7871be05af
commit bb297ac354

View File

@@ -3853,6 +3853,7 @@ BOOL LLWindowWin32::handleImeRequests(U32 request, U32 param, LRESULT *result)
mPreeditor->getPreeditRange(&preedit, &preedit_length);
LLCoordGL caret_coord;
LLRect preedit_bounds, text_control;
llassert_always(char_position); // <singu> Remove before release, this is just to investigate signature 450.
const S32 position = wstring_wstring_length_from_utf16_length(wtext, preedit, char_position->dwCharPos);
if (!mPreeditor->getPreeditLocation(position, &caret_coord, &preedit_bounds, &text_control))