diff options
author | Tsutomu Uchino <hanya@apache.org> | 2018-01-16 16:17:17 +0000 |
---|---|---|
committer | Tsutomu Uchino <hanya@apache.org> | 2018-01-16 16:17:17 +0000 |
commit | e387056aa78f50e7be024014e9236aacd1fe7eab (patch) | |
tree | edff670a70c4473899be918be9fba6432f178835 /svtools | |
parent | 064e99cea6e96decb0fd508e930580fccb4c33bc (diff) |
#i127662# send better window position to input method for suggestion window
Notes
Notes:
ignore: obsolete
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/textview.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx index 455866301843..c1adec5300a1 100644 --- a/svtools/source/edit/textview.cxx +++ b/svtools/source/edit/textview.cxx @@ -1048,6 +1048,10 @@ void TextView::Command( const CommandEvent& rCEvt ) long nWidth = aR2.Left()-aR1.Right(); aR1.Move( -GetStartDocPos().X(), -GetStartDocPos().Y() ); + if ( nWidth == 0 ) { + Rectangle aR3 = mpImpl->mpTextEngine->PaMtoEditCursor( mpImpl->mpTextEngine->mpIMEInfos->aPos ); + nWidth = -(aR1.Left() - aR3.Left()); + } GetWindow()->SetCursorRect( &aR1, nWidth ); } else |