To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=45248
                  Issue #:|45248
                  Summary:|Patch For Bug#65217
                Component:|Spreadsheet
                  Version:|OOo 2.0
                 Platform:|PC
                      URL:|
               OS/Version:|Linux
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|PATCH
                 Priority:|P3
             Subcomponent:|viewing
              Assigned to:|spreadsheet
              Reported by:|naveen_kv





------- Additional comments from [EMAIL PROTECTED] Wed Mar 16 23:57:08 -0800 
2005 -------
The problem was,

Description of Problem:
When you copy formatted text from another source (say, text displayed in a
browser window) and then go into Calc and select Edit | Paste Special, and
then select "Unformatted Text", once the paste operation is completed, it
does not display the text. 

Sometimes, it displays parts of the text but often it doesn't display anything.

If you flip to another application and then flip back to Calc, you see the
text, so it's "there", but it's not initially.


Steps to reproduce the problem:
1. Copy some formatted text from another source.
2. Create a new spreadsheet
3. Place your cursor into a cell
4. Select Edit | Paste Special
5. Select the "Unformatted Text" option
6. Accept the defaults in the "Text Import" dialog that's shown
7. Notice that some (most or all, most commonly) text is not visible.

Actual Results:
You can't see all of the pasted text.

Expected Results:
To see all of the pasted text.

How often does this happen? 
All the time when I do the Paste Special option as described above.


Patch To this problem:

this problem can be solved with the following patch. it also solves the problem 
of undo with paste special.

here is the patch :


--- impex.cxx.orig      2005-03-12 16:16:33.215914400 +0530
+++ impex.cxx   2005-03-12 16:19:00.531519024 +0530
@@ -1070,6 +1072,8 @@
        if (!pExtOptions)
                return Text2Doc( rStrm );
 
+       StartPaste();   // Undo & others are taken care, fix for #65217
+
        ULONG nOldPos = rStrm.Tell();
        rStrm.Seek( STREAM_SEEK_TO_END );
        ScProgress aProgress( pDocSh, ScGlobal::GetRscString( STR_LOAD_DOC ), 
rStrm.Tell() - nOldPos );
@@ -1084,6 +1088,8 @@
        SCCOL nStartCol = aRange.aStart.Col();
        SCROW nStartRow = aRange.aStart.Row();
        SCTAB nTab = aRange.aStart.Tab();
+       SCCOL nEndCol = aRange.aEnd.Col();      // fix for #65217
+       SCROW nEndRow = aRange.aEnd.Row();      // fix for #65217
 
        BOOL    bFixed                  = pExtOptions->IsFixedLen();
        const String& rSeps     = pExtOptions->GetFieldSeps();
@@ -1190,6 +1196,10 @@
                        bOverflow = TRUE;                       // beim Import 
Warnung ausgeben
                        break;
                }
+
+               // Find the correct End Col and End Row, fix for #65217
+               if(nCol>nEndCol) nEndCol=nCol;
+               if(nRow>nEndRow) nEndRow=nRow;
        }
 
        ScColumn::bDoubleAlloc = bOld;
@@ -1198,6 +1208,11 @@
     delete pEnglishTransliteration;
        delete pEnglishCalendar;

---------------------------------------------------------------------
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