aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:16 -0500
committerJacek Antonelli2008-08-15 23:45:16 -0500
commit3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch)
tree504932ee91a0356fba7ea48798887c96867e492f /linden/indra/llui/lllineeditor.cpp
parentSecond Life viewer sources 1.18.4.3 (diff)
downloadmeta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz
Second Life viewer sources 1.18.5.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/lllineeditor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/llui/lllineeditor.cpp b/linden/indra/llui/lllineeditor.cpp
index 9671065..78fe29c 100644
--- a/linden/indra/llui/lllineeditor.cpp
+++ b/linden/indra/llui/lllineeditor.cpp
@@ -1642,6 +1642,9 @@ void LLLineEditor::draw()
1642 { 1642 {
1643 mLastIMEPosition.mX = ime_pos.mX; 1643 mLastIMEPosition.mX = ime_pos.mX;
1644 mLastIMEPosition.mY = ime_pos.mY; 1644 mLastIMEPosition.mY = ime_pos.mY;
1645
1646 ime_pos.mX = (S32) (ime_pos.mX * LLUI::sGLScaleFactor.mV[VX]);
1647 ime_pos.mY = (S32) (ime_pos.mY * LLUI::sGLScaleFactor.mV[VY]);
1645 getWindow()->setLanguageTextInput( ime_pos ); 1648 getWindow()->setLanguageTextInput( ime_pos );
1646 } 1649 }
1647 } 1650 }
@@ -2219,6 +2222,11 @@ LLView* LLLineEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory
2219 { 2222 {
2220 line_editor->setHandleEditKeysDirectly(handle_edit_keys_directly); 2223 line_editor->setHandleEditKeysDirectly(handle_edit_keys_directly);
2221 } 2224 }
2225 BOOL commit_on_focus_lost = TRUE;
2226 if (node->getAttributeBOOL("commit_on_focus_lost", commit_on_focus_lost))
2227 {
2228 line_editor->setCommitOnFocusLost(commit_on_focus_lost);
2229 }
2222 2230
2223 line_editor->setColorParameters(node); 2231 line_editor->setColorParameters(node);
2224 2232