From adb00eee518b5c5b743201cb554880448b1f29a9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 1 Oct 2020 10:40:01 +0100 Subject: Related: tdf#134566 tell IM cursor pos for empty paragraph too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- editeng/source/editeng/impedit2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editeng/source') 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() ) -- cgit