summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/olinewin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/olinewin.cxx')
-rw-r--r--sc/source/ui/view/olinewin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/olinewin.cxx b/sc/source/ui/view/olinewin.cxx
index e80cfd346c56..bf2e3910477e 100644
--- a/sc/source/ui/view/olinewin.cxx
+++ b/sc/source/ui/view/olinewin.cxx
@@ -293,7 +293,7 @@ bool ScOutlineWindow::GetEntryPos(
(rnStartPos - ( SC_OL_BITMAPSIZE / 2 ) * nEntriesSign) :
rnStartPos + nEntriesSign;
long nCenter = (rnStartPos + rnEndPos - SC_OL_BITMAPSIZE * nEntriesSign +
- ( mbMirrorEntries ? 1 : 0 )) / 2L;
+ ( mbMirrorEntries ? 1 : 0 )) / 2;
rnImagePos = mbMirrorEntries ? std::max( rnImagePos, nCenter ) : std::min( rnImagePos, nCenter );
// --- refinements ---