summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/olinewin.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-09-28 11:16:40 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-09-28 11:16:40 +0000
commita39c00539fb4d9363af0261375643f0148ab4a43 (patch)
tree6299c7af6d574ed48c2b633c7f39d4e49f92beb3 /sc/source/ui/view/olinewin.cxx
parentd1e1df036990b14e34733245230fe21107557d53 (diff)
INTEGRATION: CWS dr37 (1.10.2); FILE MERGED
2005/07/15 14:43:14 dr 1.10.2.1: #i51970# correct X position in mirrored sheets
Diffstat (limited to 'sc/source/ui/view/olinewin.cxx')
-rw-r--r--sc/source/ui/view/olinewin.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/view/olinewin.cxx b/sc/source/ui/view/olinewin.cxx
index 3f7994dcf003..a8d232d63645 100644
--- a/sc/source/ui/view/olinewin.cxx
+++ b/sc/source/ui/view/olinewin.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: olinewin.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 23:01:05 $
+ * last change: $Author: hr $ $Date: 2005-09-28 12:16:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -273,8 +273,9 @@ size_t ScOutlineWindow::GetLevelCount() const
long ScOutlineWindow::GetLevelPos( size_t nLevel ) const
{
+ // #i51970# must always return the *left* edge of the area used by a level
long nPos = static_cast< long >( SC_OL_POSOFFSET + nLevel * SC_OL_BITMAPSIZE );
- return mbMirrorLevels ? (GetOutputSizeLevel() - nPos - 1) : nPos;
+ return mbMirrorLevels ? (GetOutputSizeLevel() - nPos - SC_OL_BITMAPSIZE) : nPos;
}
size_t ScOutlineWindow::GetLevelFromPos( long nLevelPos ) const