summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorFrank Meies <fme@openoffice.org>2002-05-03 10:48:41 +0000
committerFrank Meies <fme@openoffice.org>2002-05-03 10:48:41 +0000
commit847fe84fa7a52ce7b2ae95b8681627b9a8522d62 (patch)
treeb1b4376146adc83183229f504620741fa36cef85 /sw/source/core
parent89c477901c10b0944982e16e21c81eabb8627cab (diff)
Fix #99106#: Line spacing should be considered even in grid layout
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/text/itrform2.cxx20
1 files changed, 15 insertions, 5 deletions
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx
index 494ba71aa0c2..c52590aad153 100644
--- a/sw/source/core/text/itrform2.cxx
+++ b/sw/source/core/text/itrform2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: itrform2.cxx,v $
*
- * $Revision: 1.61 $
+ * $Revision: 1.62 $
*
- * last change: $Author: fme $ $Date: 2002-04-25 08:43:11 $
+ * last change: $Author: fme $ $Date: 2002-05-03 11:48:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1690,9 +1690,19 @@ void SwTxtFormatter::CalcRealHeight( sal_Bool bNewLine )
pCurr->SetAscent( nAsc );
pInf->GetParaPortion()->SetFixLineHeight();
- // Zwischenraum
-// if( !IsParaLine() )
-// nLineHeight += nInterLineHeight;
+ // we ignore any line spacing options except from ...
+ const SvxLineSpacingItem* pSpace = aLineInf.GetLineSpacing();
+ if ( ! IsParaLine() && pSpace &&
+ SVX_INTER_LINE_SPACE_PROP == pSpace->GetInterLineSpaceRule() )
+ {
+ ULONG nTmp = pSpace->GetPropLineSpace();
+
+ if( nTmp < 100 )
+ nTmp = 100;
+
+ nTmp *= nLineHeight;
+ nLineHeight = (USHORT)(nTmp / 100);
+ }
pCurr->SetRealHeight( nLineHeight );
return;