Bug 58678

Summary: EDITING: paste special options incorrect after undo of paste after cut
Product: LibreOffice Reporter: Winfried Donkers <osc>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: medium    
Version: 3.6.4.3 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: sample document used in description.

Description Winfried Donkers 2012-12-23 11:19:43 UTC
Created attachment 72020 [details]
sample document used in description.

Problem description: 
(based on sample document in attachment)
Steps to reproduce:
1. select row 2
2. cut
3. click on A4
4. open paste special dialog (ignore if shift down is disabled an shift right is enabled, this is patched under bug 56098)
5. select don't shift
6. selection is pasted 
7. undo 
8. click on A5
9. open paste special dialog; both shift-option are available, which is not correct. Shift right should be disabled (shift down in case of patch for bug 56098 not yet applied)

Analog for cutting columns or other ranges.

The cause for this behaviour is in /core/sc/source/ui/view/cellsh1.cxx on line 1266: pOwnClip->GetDocument()->IsCutMode() returns false when it ought to return true.

(I stumbled upon this bug whilst working on bug 56098, but the problem described here is unrelated to bug 56098.)

              
Operating System: All
Version: 3.6.4.3 release
Comment 1 Winfried Donkers 2013-04-03 11:01:23 UTC
Problem has been fixed with extended fix for bug #56098