diff options
Diffstat (limited to 'dbaccess/source/ui/misc/RtfReader.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/RtfReader.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dbaccess/source/ui/misc/RtfReader.cxx b/dbaccess/source/ui/misc/RtfReader.cxx index 34540ad11684..5ba41d439b3e 100644 --- a/dbaccess/source/ui/misc/RtfReader.cxx +++ b/dbaccess/source/ui/misc/RtfReader.cxx @@ -163,16 +163,17 @@ void ORTFReader::NextToken( int nToken ) break; case RTF_TROWD: { - sal_uInt32 nTell = rInput.Tell(); // verndert vielleicht die Position des Streams bool bInsertRow = true; if ( !m_xTable.is() ) // erste Zeile als Header verwenden { + sal_uInt32 nTell = rInput.Tell(); // verndert vielleicht die Position des Streams + m_bError = !CreateTable(nToken); bInsertRow = m_bAppendFirstLine; if ( m_bAppendFirstLine ) { rInput.Seek(nTell); - bInsertRow = true; + rInput.ResetError(); } } if ( bInsertRow && !m_bError) @@ -333,7 +334,7 @@ sal_Bool ORTFReader::CreateTable(int nToken) break; } } - while((nTmpToken2 = GetNextToken()) != RTF_ROW && eState != SVPAR_ERROR && eState != SVPAR_ACCEPTED); + while((nTmpToken2 = GetNextToken()) != RTF_TROWD && eState != SVPAR_ERROR && eState != SVPAR_ACCEPTED); sal_Bool bOk = !m_vDestVector.empty(); if(bOk) |