editeng/source/editeng/editview.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit ae32ac87b223d6f90c460a83fa5073eb5d0f4706 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Dec 10 16:04:06 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Dec 10 18:18:07 2020 +0100 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> diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 35965e1e276a..884817f415b6 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -868,7 +868,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 ); @@ -911,7 +911,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