summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/colfrm.cxx
diff options
context:
space:
mode:
authorAndreas Martens <ama@openoffice.org>2002-01-23 12:38:21 +0000
committerAndreas Martens <ama@openoffice.org>2002-01-23 12:38:21 +0000
commitfaf0f79ecc6aaee1649cdec767dec332d0288781 (patch)
treeccff720929e694c742656222ce92c4bf8640f460 /sw/source/core/layout/colfrm.cxx
parented6aa365833fa6e5700bdde6df74e45467e4a997 (diff)
Fix #96678#: Vertical layout
Diffstat (limited to 'sw/source/core/layout/colfrm.cxx')
-rw-r--r--sw/source/core/layout/colfrm.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/layout/colfrm.cxx b/sw/source/core/layout/colfrm.cxx
index fe7367ddbe23..5bd6c853be9b 100644
--- a/sw/source/core/layout/colfrm.cxx
+++ b/sw/source/core/layout/colfrm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: colfrm.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: ama $ $Date: 2001-10-19 10:18:05 $
+ * last change: $Author: ama $ $Date: 2002-01-23 13:38:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -497,7 +497,11 @@ void SwLayoutFrm::AdjustColumns( const SwFmtCol *pAttr, BOOL bAdjustAttributes )
}
if( bOrtho )
{
+#ifdef VERTICAL_LAYOUT
nAvail = (Prt().*fnRect->fnGetWidth)();
+#else
+ nAvail = Prt().Width();
+#endif
long nInnerWidth = ( nAvail - nGutter )/ pAttr->GetNumCols();
pCol = Lower();
for( USHORT i = 0; i < pAttr->GetNumCols(); pCol = pCol->GetNext(), ++i)