summaryrefslogtreecommitdiff
path: root/svx/source/dialog/svxruler.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-10-19 07:40:53 +0000
committerRüdiger Timm <rt@openoffice.org>2005-10-19 07:40:53 +0000
commit5f6d679f2aac4c141693903af8c7701513f4cddb (patch)
tree432f1b2b0a1e0bff6ffcbba8ec3ec186cc645e5c /svx/source/dialog/svxruler.cxx
parentf6dceed9e8246b292a58ef518a483b2f57e0b22c (diff)
INTEGRATION: CWS os64 (1.26.608); FILE MERGED
2005/10/14 11:53:07 os 1.26.608.2: RESYNC: (1.26-1.27); FILE MERGED 2005/08/22 14:50:38 os 1.26.608.1: #i50211# single row table resizes fixed
Diffstat (limited to 'svx/source/dialog/svxruler.cxx')
-rw-r--r--svx/source/dialog/svxruler.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index e87f32a451e6..fa7a0de54b48 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svxruler.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 22:08:49 $
+ * last change: $Author: rt $ $Date: 2005-10-19 08:40:53 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -2951,9 +2951,15 @@ void SvxRuler::CalcMinMax()
}
else
{
- nMaxLeft = pBorders[pColumnItem->Count() - 2].nPos + lMinFrame + lNullPix;
+ if(pColumnItem->Count() > 1)
+ nMaxLeft = pBorders[pColumnItem->Count() - 2].nPos + lMinFrame + lNullPix;
+ else
+ nMaxLeft = lMinFrame + lNullPix;
}
- nMaxRight = pBorders[pColumnItem->Count() - 2].nMaxPos + lNullPix;
+ if(pColumnItem->Count() > 1)
+ nMaxRight = pBorders[pColumnItem->Count() - 2].nMaxPos + lNullPix;
+ else
+ nMaxRight -= GetRightIndent() - lNullPix;
}
}
else