diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-10-19 07:40:53 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-10-19 07:40:53 +0000 |
commit | 5f6d679f2aac4c141693903af8c7701513f4cddb (patch) | |
tree | 432f1b2b0a1e0bff6ffcbba8ec3ec186cc645e5c /svx/source/dialog/svxruler.cxx | |
parent | f6dceed9e8246b292a58ef518a483b2f57e0b22c (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.cxx | 14 |
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 |