summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-25 10:20:12 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-25 21:35:30 +0100
commit0581190bc4e5502d93aa695365e7bf82b23d1ecf (patch)
tree8581905070dae35e674e7e3fb67ad932dfc4de57 /sc
parenta80258e11282c78ab3867c96e4c2575e83c5482b (diff)
cid#1594675 Logically dead code
Change-Id: Icaf621e7a2e163f969ac7b6a1d6d04bf9251ea56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165277 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabview.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index e809ceb11249..79bd6d1e67ff 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1154,10 +1154,12 @@ void ScTabView::ScrollHdl(ScrollAdaptor* pScroll)
aHelpStr = ScResId(STR_ROW) +
" " + OUString::number(nScrollPos + 1);
+ // note that bLayoutRTL is always false here, because bLayoutRTL depends on bHoriz
+
// show quicktext always inside sheet area
- aRect.SetLeft( bLayoutRTL ? (aPos.X() + aSize.Width() + 8) : (aPos.X() - 8) );
+ aRect.SetLeft(aPos.X() - 8);
aRect.SetTop( aMousePos.Y() );
- nAlign = (bLayoutRTL ? QuickHelpFlags::Left : QuickHelpFlags::Right) | QuickHelpFlags::VCenter;
+ nAlign = QuickHelpFlags::Right | QuickHelpFlags::VCenter;
}
aRect.SetRight( aRect.Left() );
aRect.SetBottom( aRect.Top() );