| Summary: | CALC / MACRO graphics of a sheet messed up after inserting a sheet in a lower index number | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Philippe Lévi <philippe> |
| Component: | Calc | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | ||
| Severity: | minor | CC: | buzea.bogdan |
| Priority: | medium | ||
| Version: | 7.3.2.2 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Windows (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 107659 | ||
| Attachments: | spreadsheet with 2 sheets and a macro Main | ||
|
Description
Philippe Lévi
2022-05-22 22:58:17 UTC
Confirmed in Version: 7.3.3.1 (x64) / LibreOffice Community Build ID: 1688991ca59a3ca1c74bc2176b274fba1b034928 CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win Locale: cs-CZ (cs_CZ); UI: cs-CZ Calc: CL Another interesting fact is, if new sheet (Concentrateur) is created before the sheet 'test', then it is functional. Sub Main dim const nomFeuilleDest = "test" dim const nomFeuilleModeleSequence = "Modèle Séquence" dim const nomFeuilleConcentrateur = "Concentrateur" with thisComponent if not .sheets.hasByName(nomFeuilleConcentrateur) then .sheets.insertNewByName(nomFeuilleConcentrateur, 2) 'create the Concentrateur sheet firstly if .sheets.hasByName( nomFeuilleDest) then .sheets.removeByName( nomFeuilleDest) .sheets.copyByName( nomFeuilleModeleSequence, nomFeuilleDest, .sheets.Count) end with msgbox "Done !" End Sub letting it after, but with .sheets.count (inserting at the end) there is also no problem ...
if not .sheets.hasByName(nomFeuilleConcentrateur) then
.sheets.insertNewByName(nomFeuilleConcentrateur, .sheets.count)
|