summaryrefslogtreecommitdiff
path: root/starmath/source/accessibility.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-19 20:52:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-20 16:53:41 +0100
commite04eb83b7fb5668f9d2fc56f58abc4f396635866 (patch)
tree355052c93139d254b50ea441041d4c6aef92289d /starmath/source/accessibility.cxx
parent51e87c0e27ef85bdc47674a8b8f0e7ce0f431528 (diff)
OutputDevice view is sufficient here
Change-Id: I9aa02ccadeb343c9a90ef23d44c5c5621d60c358 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112785 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source/accessibility.cxx')
-rw-r--r--starmath/source/accessibility.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index ae21fd08bb1a..d6e5988b0220 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -807,7 +807,7 @@ bool SmViewForwarder::IsValid() const
Point SmViewForwarder::LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const
{
EditView *pEditView = rEditAcc.GetEditView();
- OutputDevice* pOutDev = pEditView ? pEditView->GetWindow() : nullptr;
+ OutputDevice* pOutDev = pEditView ? &pEditView->GetOutputDevice() : nullptr;
if( pOutDev )
{
@@ -824,7 +824,7 @@ Point SmViewForwarder::LogicToPixel( const Point& rPoint, const MapMode& rMapMod
Point SmViewForwarder::PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const
{
EditView *pEditView = rEditAcc.GetEditView();
- OutputDevice* pOutDev = pEditView ? pEditView->GetWindow() : nullptr;
+ OutputDevice* pOutDev = pEditView ? &pEditView->GetOutputDevice() : nullptr;
if( pOutDev )
{
@@ -1387,7 +1387,7 @@ bool SmEditViewForwarder::IsValid() const
Point SmEditViewForwarder::LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const
{
EditView *pEditView = rEditAcc.GetEditView();
- OutputDevice* pOutDev = pEditView ? pEditView->GetWindow() : nullptr;
+ OutputDevice* pOutDev = pEditView ? &pEditView->GetOutputDevice() : nullptr;
if( pOutDev )
{
@@ -1404,7 +1404,7 @@ Point SmEditViewForwarder::LogicToPixel( const Point& rPoint, const MapMode& rMa
Point SmEditViewForwarder::PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const
{
EditView *pEditView = rEditAcc.GetEditView();
- OutputDevice* pOutDev = pEditView ? pEditView->GetWindow() : nullptr;
+ OutputDevice* pOutDev = pEditView ? &pEditView->GetOutputDevice() : nullptr;
if( pOutDev )
{