[Libreoffice-commits] .: sw/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Apr 13 01:11:22 PDT 2012


 sw/source/core/text/frminf.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 63585de969d3892ddb6034cfa05284e30f97a304
Author: Philipp Weissenbacher <p.weissenbacher at gmail.com>
Date:   Thu Apr 12 21:07:21 2012 +0200

    Convert macro to local const variable

diff --git a/sw/source/core/text/frminf.cxx b/sw/source/core/text/frminf.cxx
index 93b4c01..a9b3c48 100644
--- a/sw/source/core/text/frminf.cxx
+++ b/sw/source/core/text/frminf.cxx
@@ -279,13 +279,13 @@ sal_Bool SwTxtFrmInfo::IsBullet( xub_StrLen nTxtStart ) const
 // All lines (except for the first one) have the same left margin.
 // We do not want to be so picky and work with a tolerance of TOLERANCE twips.
 
-#define TOLERANCE 20
-
 SwTwips SwTxtFrmInfo::GetFirstIndent() const
 {
     SwTxtSizeInfo aInf( (SwTxtFrm*)pFrm );
     SwTxtCursor aLine( (SwTxtFrm*)pFrm, &aInf );
     const SwTwips nFirst = GetLineStart( aLine );
+    const SwTwips TOLERANCE = 20;
+
     if( !aLine.Next() )
         return 0;
 


More information about the Libreoffice-commits mailing list