[Libreoffice-commits] core.git: sw/source

Noel Grandin noel at peralex.com
Mon Aug 12 03:46:55 PDT 2013


 sw/source/core/txtnode/fntcache.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aabc1d237a532b2a87f443d620c8536edbe1daea
Author: Noel Grandin <noel at peralex.com>
Date:   Mon Aug 12 12:45:07 2013 +0200

    fix build after recent OUString cleanups
    
    I think my changes and Caolon's changes are colliding in mid-air.
    
    Change-Id: I45398b358b53662164c6a332e68ce8cd61a79cef

diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 8e30edd..756f2c1 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -543,7 +543,7 @@ void SwFntObj::GuessLeading( const ViewShell&
         pWin->SetFont( *pPrtFont );
         const FontMetric aWinMet( pWin->GetFontMetric() );
         const sal_uInt16 nWinHeight = sal_uInt16( aWinMet.GetSize().Height() );
-        if( pPrtFont->GetName().Search( aWinMet.GetName() ) < USHRT_MAX )
+        if( pPrtFont->GetName().indexOf( aWinMet.GetName() ) != -1 )
         {
             // If the Leading on the Window is also 0, then it has to stay
             // that way (see also StarMath).


More information about the Libreoffice-commits mailing list