summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2012-02-01 10:28:45 -0500
committerJonathan Yap <none@none>2012-02-01 10:28:45 -0500
commit59dfcba33de76bfc998b9aa2121c53dff75024f7 (patch)
tree182e4d23174b31fab232f9900975431584d14abd /indra
parent4778d82ec6b735d6f3d3a4335496e9b6d804bbf7 (diff)
STORM-1738 Slight adjustment to callback
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lllineeditor.cpp7
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();