diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-10 16:04:06 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-06-14 22:17:44 +0200 |
commit | d6e1fb758aa91763774fc296d3e3fdc83f8e7d3d (patch) | |
tree | 020bdae88e617c4fbfcc2973a51af6cbe691717c /editeng | |
parent | 080d8a82b2cd3a247ac5e381712cf1d68e3c51cc (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117110
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.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 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() ); |