editeng/source/editeng/editview.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d6e1fb758aa91763774fc296d3e3fdc83f8e7d3d
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Dec 10 16:04:06 2020 +0000
Commit:     Andras Timar <andras.ti...@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 <caol...@redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117110
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@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() );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to