[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - editeng/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jun 14 20:18:17 UTC 2021
editeng/source/editeng/editview.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d6e1fb758aa91763774fc296d3e3fdc83f8e7d3d
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Dec 10 16:04:06 2020 +0000
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Mon Jun 14 22:17:44 2021 +0200
don't need a vcl::Window for PixelToLogic
Change-Id: Iccf5fe5e736017962a58d6471bb2d1890f77c6c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107560
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117110
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index 5478803fc72e..094c2f45a558 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -881,7 +881,7 @@ bool EditView::IsCursorAtWrongSpelledWord()
bool EditView::IsWrongSpelledWordAtPos( const Point& rPosPixel, bool bMarkIfWrong )
{
- Point aPos ( pImpEditView->GetWindow()->PixelToLogic( rPosPixel ) );
+ Point aPos(pImpEditView->GetOutputDevice().PixelToLogic(rPosPixel));
aPos = pImpEditView->GetDocPos( aPos );
EditPaM aPaM = pImpEditView->pEditEngine->GetPaM(aPos, false);
return pImpEditView->IsWrongSpelledWord( aPaM , bMarkIfWrong );
@@ -924,7 +924,7 @@ static void LOKSendSpellPopupMenu(Menu* pMenu, LanguageType nGuessLangWord,
void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void> const * pCallBack )
{
- Point aPos ( pImpEditView->GetWindow()->PixelToLogic( rPosPixel ) );
+ Point aPos(pImpEditView->GetOutputDevice().PixelToLogic(rPosPixel));
aPos = pImpEditView->GetDocPos( aPos );
EditPaM aPaM = pImpEditView->pEditEngine->GetPaM(aPos, false);
Reference< linguistic2::XSpellChecker1 > xSpeller( pImpEditView->pEditEngine->pImpEditEngine->GetSpeller() );
More information about the Libreoffice-commits
mailing list