summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-12 12:45:07 +0200
committerNoel Grandin <noel@peralex.com>2013-08-12 12:46:24 +0200
commitaabc1d237a532b2a87f443d620c8536edbe1daea (patch)
tree0cab05868f438b4736812b23838edc7e7c8e72f6 /sw
parentc73b8072a1732f829d3d6ba6c1172d96d55b1c4f (diff)
fix build after recent OUString cleanups
I think my changes and Caolon's changes are colliding in mid-air. Change-Id: I45398b358b53662164c6a332e68ce8cd61a79cef
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/fntcache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 8e30edd80038..756f2c1d9431 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).