Bug 123004 - EDITING: Sheet/Named ranges/Insert - Paste all, only pastes named ranges with global scope
Summary: EDITING: Sheet/Named ranges/Insert - Paste all, only pastes named ranges with...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Name
  Show dependency treegraph
 
Reported: 2019-01-28 00:15 UTC by m_a_riosv
Modified: 2023-12-12 08:58 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file (7.72 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-01-28 00:16 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m_a_riosv 2019-01-28 00:15:33 UTC
Description:
Menu/Sheets/Name ranges/Insert - Paste all, only pasts named ranges with global scope

Steps to Reproduce:
1. Open attached file
2. Menu/Sheets/Name ranges/Insert - Paste all
3. Only paste named ranges with global scope

Actual Results:
Only paste named ranges with global scope

Expected Results:
All named ranges pasted.


Reproducible: Always


User Profile Reset: No



Additional Info:
.
Comment 1 m_a_riosv 2019-01-28 00:16:35 UTC
Created attachment 148696 [details]
Test file
Comment 2 Durgapriyanka 2019-01-28 16:38:52 UTC
Thank you for reporting the bug.I can reproduce the bug in

Version: 6.1.3.2
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group threaded

and in

Version: 6.3.0.0.alpha0+
Build ID: 3c964980da07892a02d5ac721d80558c459532d0
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-12-12_02:07:45
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 3 Oliver Brinzing 2019-01-28 18:14:51 UTC
reproducible with

Version: 5.4.7.2
Build-ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU-Threads: 4; BS: Windows 6.2; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group
Comment 4 Buovjaga 2019-02-03 12:51:56 UTC
Already in 3.5.0. 3.3.0 only shows the global range in the dialog.

Also on Linux
Arch Linux 64-bit
Version: 6.3.0.0.alpha0+
Build ID: 8fbad2f600cd3ab81e7c1da0e4a2a71ebcac0553
CPU threads: 8; OS: Linux 4.20; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 31 January 2019
Comment 5 QA Administrators 2021-02-03 04:14:59 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2023-02-04 03:19:58 UTC Comment hidden (obsolete)
Comment 7 m_a_riosv 2023-02-04 05:07:47 UTC
Still
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fa1f2b7f5c65d66eaa5887acc9da5eb526570b18
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded Jumbo
Comment 8 Andreas Heinisch 2023-12-12 08:33:34 UTC
Is this a bug or a feature? In Sheet1 only global named ranges are pasted. However, if you select Sheet2 the named range matching the sheet will be inserted as well resulting in:

Sheet1
GLOBAL_RANGE	=R1C1

Sheet2
GLOBAL_RANGE	=R1C1
SHEET2_RANGE	=R1C1
Comment 9 Mike Kaganski 2023-12-12 08:55:47 UTC
FTR: implemented in https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/docfunc.cxx?r=95e12eae#5364

and indeed, only handles current tab
which looks absolutely reasonable - but then, it might be interesting *if* there's a need for "all named ranges on all sheets" button in the dialog. What would be a use case?
Comment 10 Mike Kaganski 2023-12-12 08:58:11 UTC
FTR: Excel does the same as Calc: its "Paste list" button pastes all the ranges scoped to workbook ot ro *current sheet*.