diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-10 16:04:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-12-10 18:18:07 +0100 |
commit | ae32ac87b223d6f90c460a83fa5073eb5d0f4706 (patch) | |
tree | b051a37b2ec9e85c6e39d585d58bd5969ef5ad47 /editeng | |
parent | 5b021965837252f48184d8441f5e19a944e3b287 (diff) |
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@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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() ); |