To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=45248
------- Additional comments from [EMAIL PROTECTED] Tue Apr 26 23:27:01 -0700
2005 -------
oops, sorry for the partial patch (on behalf of naveen_kv)
here's the complete one:
--- sc/source/ui/docshell/impex.cxx 2005-03-12 16:16:33.215914400 +0530
+++ sc/source/ui/docshell/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
+
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();
+ SCROW nEndRow = aRange.aEnd.Row();
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
+ if( nCol>nEndCol ) nEndCol = nCol;
+ if( nRow>nEndRow ) nEndRow = nRow;
}
ScColumn::bDoubleAlloc = bOld;
@@ -1198,6 +1208,11 @@
delete pEnglishTransliteration;
delete pEnglishCalendar;
+ // Set End Row and End Col so that the page is refreshed correctly
+ aRange.aEnd.SetCol( nEndCol );
+ aRange.aEnd.SetRow( nEndRow );
+ EndPaste(); // Paste was successful, refresh, etc.
+
return TRUE;
}
---------------------------------------------------------------------
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]