Bug 123518

Summary: Can not move a sheet to another document if it is the only sheet inside a document
Product: LibreOffice Reporter: Maddes <maddes+docfoundation>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal CC: jbfaure, oliver.brinzing
Priority: medium    
Version: Inherited From OOo   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description Maddes 2019-02-17 11:09:08 UTC
Description:
When trying to move a sheet that is the only sheet in a document, then the "Move/Copy" selection is grayed out.
So I have to always "copy" the sheet to the collecting documenting, then close the document that I got by dragging a CSV/TSV to Calc including "Want to save" dailog.

Version: 6.2.1.1 (x64)
Build ID: 757c58e8cb70b2982843211a54750fb3cd79acd5
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded


Steps to Reproduce:
1. Create two new documents with one sheet each.
2. Try to move one sheet to the other document.


Actual Results:
"Move" selection is grayed out.


Expected Results:
When the sheet is the only sheet of a document, then I would expect to still have the option to move it to another document, and that the source document is just closed.



Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Mike Kaganski 2019-02-17 12:16:01 UTC
I son't think it's a useful request.

The only time when it's a seemingly valid case is when it's a new, unsaved spreadsheet, from which the sheet is moved. In case of an existing document with a single sheet, moving the sheet would produce a problem: if we moved a sheet, then the document was modified, and at the same time, is invalid (having no sheets). Closing it implies asking for saving changes (it's an existing document! it was changed! if it wasn't, then why moving, not copying?) - but saving the invalid document cannot be done; closing without saving just ignores the user action that modified the document.

On the other hand, using that with a new temporary document is unnecessary, if one uses correct tools right in the target document (Sheet->Insert Sheet from File...), so that no intermediate temporary documents are created. This saves even the move itself.

IMO -> wontfix.
Comment 2 Oliver Brinzing 2019-02-17 12:30:27 UTC
(In reply to Mike Kaganski from comment #1)

> IMO -> wontfix.

+1
Comment 3 Jean-Baptiste Faure 2019-02-17 12:36:19 UTC
I agree with comments #1 and #2. From comment #1 I conclude that it is not a bug. Closing as NotABug.

Best regards. JBF
Comment 4 Maddes 2019-02-17 20:04:53 UTC
(In reply to Mike Kaganski from comment #1)
> The only time when it's a seemingly valid case is when it's a new, unsaved
> spreadsheet, from which the sheet is moved.

That's exactly my case.