https://bugs.freedesktop.org/show_bug.cgi?id=39484

--- Comment #69 from Winfried Donkers <[email protected]> ---
(In reply to comment #66)
> I did a bit of work on this; the undo object is ScUndoPaste:
> 
> ScUndoPaste::DoChange (this=0xae48eb8, bUndo=true) at
> /data/opt/libreoffice/master/sc/source/ui/undo/undoblk.cxx:896
> 
> Seems to do some rather odd things - it appears eg. to touch other sheets
> than the current one (on which the operation is done) - no idea why:
> 
> 937           for (size_t i = 0, n = maBlockRanges.size(); i < n; ++i)
> 938           {
> 939               ScRange aCopyRange = *maBlockRanges[i];
> 940               aCopyRange.aStart.SetTab(0);
> 941               aCopyRange.aEnd.SetTab(nTabCount-1);
> 942               pDoc->CopyToDocument( aCopyRange, nUndoFlags, false,
> pRedoDoc );
> 943               bRedoFilled = true;
> 
> Which of course only fills the redo data - but appears to copy every sheet
> rather than the current one [ perhaps that has something to do with it ] -
> still thinking ;-)

@Michael: when you've thought it out ;-) , but haven't got the time to code and
test, I am willing to help fixing this. It is a very annoying bug at our
company. Having said that, I won't be able to do any coding in the first half
of September.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to