editeng/source/editeng/impedit2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit adb00eee518b5c5b743201cb554880448b1f29a9 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Oct 1 10:40:01 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Oct 1 13:30:16 2020 +0200 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 <caol...@redhat.com> 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() ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits