To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=48335





------- Additional comments from [EMAIL PROTECTED] Thu Apr 28 09:33:05 -0700 
2005 -------
I have not yet compiled the code but inspection finds this code
which from my reading shows the behaviours depicted by the examples.
The line  aCell.Append("'",1); //<<<<< Insert this
will probably fix the symtoms  aka patch 1

Changing the interface to pDoc to accept one more bool that is set true
when this function parses a quoted "" text field would I think be a better 
solution but require more lines of code to change.
pDoc->SetString( nCol, nRow, aRange.aStart.Tab(), aCell, bIsString );
aka patch 2.

Code from
impex.cxx

BOOL ScImportExport::Text2Doc( SvStream& rStrm )

   ... deleted ...

                        while( *p )
                        {
                                aCell.Erase();
                                if( *p == cStr )
                                {
                              aCell.Append("'",1); //<<<<< Insert this
                                        p = lcl_ScanString( p, aCell, cStr, 
DQM_KEEP );
                                        while( *p && *p != cSep )
                                                p++;
                                        if( *p )
                                                p++;
                                }
                                else
                                {
                                        const sal_Unicode* q = p;
                                        while( *p && *p != cSep )
                                                p++;
                                        aCell.Assign( q, p - q );
                                        if( *p )
                                                p++;
                                }
                                if (ValidCol(nCol) && ValidRow(nRow) )
                                {
                                        if( bSingle )
                                        {
                                                if (nCol>nEndCol) nEndCol = 
nCol;
                                                if (nRow>nEndRow) nEndRow = 
nRow;
                                        }
                                        if( bData && nCol <= nEndCol && nRow <= 
nEndRow )
                                                pDoc->SetString( nCol, nRow, 
aRange.aStart.Tab(), aCell );
                                }
...

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to