summaryrefslogtreecommitdiff
path: root/cui/source/tabpages
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages')
-rw-r--r--cui/source/tabpages/autocdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 6df09af10d58..2f11b4c86164 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -350,7 +350,7 @@ void OfaImpBrwString::Paint(
aFont.SetWeight( WEIGHT_BOLD );
sal_Bool bFett = sal_True;
- sal_uInt16 nPos = 0;
+ sal_Int32 nPos = 0;
do {
String sTxt( pUserData->pString->GetToken( 0, 1, nPos ));
@@ -359,14 +359,14 @@ void OfaImpBrwString::Paint(
rDev.DrawText( aNewPos, sTxt );
- if( STRING_NOTFOUND != nPos )
+ if( -1 != nPos )
aNewPos.X() += rDev.GetTextWidth( sTxt );
if( bFett )
rDev.SetFont( aOldFont );
bFett = !bFett;
- } while( STRING_NOTFOUND != nPos );
+ } while( -1 != nPos );
}
}