[PATCH] fix for fdo#32421: set indent for footnotes / endnotes to 0.6cm

André Schnabel andre.schnabel at gmx.net
Tue Jun 21 07:55:41 PDT 2011


with this footnotes with number >99 will look much better
---
 sw/source/core/doc/poolfmt.cxx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx
index 54e9a93..e97b56b 100644
--- a/sw/source/core/doc/poolfmt.cxx
+++ b/sw/source/core/doc/poolfmt.cxx
@@ -575,12 +575,12 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( sal_uInt16 nId, bool bRegardLanguage )
         }
         break;
 
-    case RES_POOLCOLL_FOOTNOTE:				// Fussnote
-    case RES_POOLCOLL_ENDNOTE:
+    case RES_POOLCOLL_FOOTNOTE:             // paragraph style Footnote
+    case RES_POOLCOLL_ENDNOTE:              // paragraph style Endnote
         {
             SvxLRSpaceItem aLR( RES_LR_SPACE );
-            aLR.SetTxtFirstLineOfst( -(short)GetMetricVal( CM_05 ));
-            aLR.SetTxtLeft( GetMetricVal( CM_05 ));
+            aLR.SetTxtFirstLineOfst( -(short)( GetMetricVal( CM_05 ) + GetMetricVal( CM_01 ) ) );
+            aLR.SetTxtLeft( GetMetricVal( CM_05 ) + GetMetricVal( CM_01 ) );
             SetAllScriptItem( aSet, SvxFontHeightItem( PT_10, 100, RES_CHRATR_FONTSIZE ) );
             aSet.Put( aLR );
             SwFmtLineNumber aLN; aLN.SetCountLines( sal_False );
-- 
1.7.3.4


--------------060608040308020304020208--


More information about the LibreOffice mailing list