summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-06-18 15:49:51 +0000
committerNiklas Nebel <nn@openoffice.org>2001-06-18 15:49:51 +0000
commitad463208c9f3ec46fcfe21cf24246da0a788f389 (patch)
tree5fec29f771d07cd97072c2ef6334a43bd43a5d27 /sc/source/ui/view/tabview.cxx
parentf291def59cb09847b4cfa704b902cde5420ffed3 (diff)
#88176# UpdateHeaderWidth: avoid extra step at 0
Diffstat (limited to 'sc/source/ui/view/tabview.cxx')
-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 509bfc22eff4..8b8b78e20e1f 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tabview.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hjs $ $Date: 2000-11-07 10:49:18 $
+ * last change: $Author: nn $ $Date: 2001-06-18 16:49:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1563,6 +1563,8 @@ void ScTabView::UpdateHeaderWidth( const ScVSplitPos* pWhich, const USHORT* pPos
if (nEndPos>10000)
nEndPos = 10000;
+ else if (nEndPos<1) // avoid extra step at 0 (when only one row is visible)
+ nEndPos = 1;
long nWidth = nBig - ( 10000 - nEndPos ) * nDiff / 10000;
if ( nWidth != pRowBar[SC_SPLIT_BOTTOM]->GetWidth() && !bInUpdateHeader )