diff options
Diffstat (limited to 'svtools/source/control/ruler.cxx')
-rw-r--r-- | svtools/source/control/ruler.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index d343532e40a0..1cb397edd890 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -803,7 +803,7 @@ void Ruler::ImplDrawIndents(vcl::RenderContext& rRenderContext, long nMin, long } } bool bIsHit = false; - if(mxCurrentHitTest.get() != nullptr && mxCurrentHitTest->eType == RulerType::Indent) + if (mxCurrentHitTest != nullptr && mxCurrentHitTest->eType == RulerType::Indent) { bIsHit = mxCurrentHitTest->nAryPos == j; } @@ -1996,7 +1996,7 @@ void Ruler::MouseMove( const MouseEvent& rMEvt ) if (ImplHitTest( rMEvt.GetPosPixel(), mxCurrentHitTest.get() )) { - maHoverSelection = *mxCurrentHitTest.get(); + maHoverSelection = *mxCurrentHitTest; if (mxCurrentHitTest->bSize) { @@ -2028,7 +2028,7 @@ void Ruler::MouseMove( const MouseEvent& rMEvt ) } } - if (mxPreviousHitTest.get() != nullptr && mxPreviousHitTest->eType != mxCurrentHitTest->eType) + if (mxPreviousHitTest != nullptr && mxPreviousHitTest->eType != mxCurrentHitTest->eType) { mbFormat = true; } |