diff options
author | Jonathan Yap <none@none> | 2012-02-01 10:28:45 -0500 |
---|---|---|
committer | Jonathan Yap <none@none> | 2012-02-01 10:28:45 -0500 |
commit | 59dfcba33de76bfc998b9aa2121c53dff75024f7 (patch) | |
tree | 182e4d23174b31fab232f9900975431584d14abd /indra/llui/lllineeditor.cpp | |
parent | 4778d82ec6b735d6f3d3a4335496e9b6d804bbf7 (diff) |
STORM-1738 Slight adjustment to callback
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r-- | indra/llui/lllineeditor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index ba50728e89..de951d3b56 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -151,7 +151,8 @@ LLLineEditor::LLLineEditor(const LLLineEditor::Params& p) mHighlightColor(p.highlight_color()), mPreeditBgColor(p.preedit_bg_color()), mGLFont(p.font), - mContextMenuHandle() + mContextMenuHandle(), + mAutocorrectCallback() { llassert( mMaxLengthBytes > 0 ); @@ -866,10 +867,10 @@ void LLLineEditor::addChar(const llwchar uni_char) } // *TODO implement callback routine - if (!mReadOnly /*&& autocorrectCallbackRoutine != NULL */) + if (!mReadOnly && mAutocorrectCallback != NULL) { // call callback - // autotocorrectCallbackRoutine(mText&, mCursorPos&); + // mAutotocorrectCallback(mText&, mCursorPos&); } getWindow()->hideCursorUntilMouseMove(); |