| Summary: | EDITING: Expressions with global scope shouldn't be copied to a local scope, when a sheet is copied. Released notes 5.2 | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | m_a_riosv <miguelangelrv> |
| Component: | Calc | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | CLOSED NOTABUG | ||
| Severity: | normal | CC: | erack, royerjy |
| Priority: | medium | ||
| Version: | 5.2.0.0.beta2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: | Tes file to copy global local named expressions | ||
|
Description
m_a_riosv
2016-06-25 12:25:59 UTC
I confirm with Build ID: 91f2f71e7b936c3c9fb984aaa01d432926abb38f on Linux 64 bits. Sorry, why highest and critical? (In reply to m.a.riosv from comment #2) > Sorry, why highest and critical? Because it is impossible to use old spreadsheets using two kinds of names with the new version. In 5.1.4 they is a way to use old syntax : without sheet name prefix for local et with sheet name prefix for global, both define as global. I do not know how to do the same thing with the new feature as it is working. However, new feature is good if it works fine. (In reply to royerjy from comment #3) Could you elaborate? A name with sheet prefix was not possible before 5.2, neither for global names nor for local names. (In reply to m.a.riosv from comment #0) > IMO when a sheet is copied to a new one, shouldn't create a copy of named > expressions having global scope to one with local scope. Note that a global name is only copied to a local name if it references the same sheet that you are copying. This is because you're duplicating also the data it references. > I don't think it's fine allowing global and local expressions with the same > name That's perfectly fine and also allowed in other spreadsheet applications. Actually there's no bug. (In reply to Eike Rathke from comment #5) > (In reply to m.a.riosv from comment #0) > > IMO when a sheet is copied to a new one, shouldn't create a copy of named > > expressions having global scope to one with local scope. > > Note that a global name is only copied to a local name if it references the > same sheet that you are copying. This is because you're duplicating also the > data it references. I think I understand how it does, but if I want that behavior I can set the NamExp as local, so local is copied as local. But global copied as local, sorry I can't agree. > > > I don't think it's fine allowing global and local expressions with the same > > name > > That's perfectly fine and also allowed in other spreadsheet applications. IMHO only a source of mistakes. (In reply to m.a.riosv from comment #7) > (In reply to Eike Rathke from comment #5) > > (In reply to m.a.riosv from comment #0) > > > IMO when a sheet is copied to a new one, shouldn't create a copy of named > > > expressions having global scope to one with local scope. > > > > Note that a global name is only copied to a local name if it references the > > same sheet that you are copying. This is because you're duplicating also the > > data it references. > > I think I understand how it does, but if I want that behavior I can set the > NamExp as local, so local is copied as local. But global copied as local, > sorry I can't agree. > > > > > > I don't think it's fine allowing global and local expressions with the same > > > name > > > > That's perfectly fine and also allowed in other spreadsheet applications. > > IMHO only a source of mistakes. I agree with all m.a.riosv remarks. How can we use names in macros with this behaviour ? May be is it necessary to adopt new rules, like : never, never, create global and local names in a sheet witch has to be copied ? Is that already explain somewhere ? In this case, an alert would be helpful when copying a global name. Global names must be created only in special sheets or directly in names. |