diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-04 13:37:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 06:39:05 +0000 |
commit | 27513d4df50f6d18b585f4cbec6a4dd3f9b432cc (patch) | |
tree | 92b1d636fae62968195b253bc02f936968734c9a /sc/source/ui/dbgui | |
parent | 7f509501e9b042aeae0cdcc8e267550a45ab43c2 (diff) |
loplugin:expandablemethods in sc
Change-Id: Ib417c5e978fca563f8c0ef0dbe6b9d50fead9828
Reviewed-on: https://gerrit.libreoffice.org/30566
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r-- | sc/source/ui/dbgui/csvruler.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx index 3c53c125b4f9..c0b5b197d68c 100644 --- a/sc/source/ui/dbgui/csvruler.cxx +++ b/sc/source/ui/dbgui/csvruler.cxx @@ -530,7 +530,10 @@ void ScCsvRuler::ImplRedraw() ImplDrawRulerDev(); } DrawOutDev( Point(), maWinSize, Point(), maWinSize, *maRulerDev.get() ); - ImplDrawTrackingRect(); + /* Draws directly tracking rectangle to the column with the specified index. */ + if( HasFocus() ) + InvertTracking( Rectangle( 0, 0, GetWidth() - 1, GetHeight() - 2 ), + ShowTrackFlags::Small | ShowTrackFlags::TrackWindow ); } } @@ -636,13 +639,6 @@ void ScCsvRuler::ImplInvertCursor( sal_Int32 nPos ) } } -void ScCsvRuler::ImplDrawTrackingRect() -{ - if( HasFocus() ) - InvertTracking( Rectangle( 0, 0, GetWidth() - 1, GetHeight() - 2 ), - ShowTrackFlags::Small | ShowTrackFlags::TrackWindow ); -} - void ScCsvRuler::ImplSetMousePointer( sal_Int32 nPos ) { SetPointer( Pointer( HasSplit( nPos ) ? PointerStyle::HSplit : PointerStyle::Arrow ) ); |