summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdview3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/sdview3.cxx')
-rw-r--r--sd/source/ui/view/sdview3.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx
index a36845aeeb71..eae82f335750 100644
--- a/sd/source/ui/view/sdview3.cxx
+++ b/sd/source/ui/view/sdview3.cxx
@@ -342,11 +342,11 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper,
{
xStm->Seek( 0 );
- ByteString aLine;
- while( xStm->ReadLine(aLine) )
+ rtl::OString aLine;
+ while (xStm->ReadLine(aLine))
{
- xub_StrLen x = aLine.Search( "\\trowd" );
- if( x != STRING_NOTFOUND )
+ sal_Int32 x = aLine.indexOf( "\\trowd" );
+ if (x != -1)
{
bTable = true;
nFormat = FORMAT_RTF;