diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-01 10:40:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-01 13:30:16 +0200 |
commit | adb00eee518b5c5b743201cb554880448b1f29a9 (patch) | |
tree | c72715f9be5d226a4b40c789c05f39ca90aaf3d8 /editeng/source | |
parent | 7bd7ff5a8d938e474a8f15e2c6facad632a342bb (diff) |
Related: tdf#134566 tell IM cursor pos for empty paragraph too
even if there is no text yet we should update the IM cursor
position if asked for it
Change-Id: I9c3b9eef9f58180b00a8276d25fad83400a92043
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103751
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 34babbcedc7f..0887005cc8b1 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -460,7 +460,7 @@ void ImpEditEngine::Command( const CommandEvent& rCEvt, EditView* pView ) } else if ( rCEvt.GetCommand() == CommandEventId::CursorPos ) { - if ( mpIMEInfos && mpIMEInfos->nLen ) + if (mpIMEInfos) { EditPaM aPaM( pView->pImpEditView->GetEditSelection().Max() ); tools::Rectangle aR1 = PaMtoEditCursor( aPaM ); @@ -529,7 +529,7 @@ void ImpEditEngine::Command( const CommandEvent& rCEvt, EditView* pView ) } else if ( rCEvt.GetCommand() == CommandEventId::QueryCharPosition ) { - if ( mpIMEInfos && mpIMEInfos->nLen ) + if (mpIMEInfos) { EditPaM aPaM( pView->pImpEditView->GetEditSelection().Max() ); if ( !IsFormatted() ) |