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>
This commit is contained in:
parent
7bd7ff5a8d
commit
adb00eee51
1 changed files with 2 additions and 2 deletions
|
@ -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() )
|
||||
|
|
Loading…
Reference in a new issue