https://bugs.documentfoundation.org/show_bug.cgi?id=170852

            Bug ID: 170852
           Summary: IMPRESS [API] Should not allow slide names to be
                    identical
           Product: LibreOffice
           Version: 24.2.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Current Impress UI behaviour does not allow a slide to be renamed to have a
duplicated name with another slide, however it is possible to rename a slide
using the API's "Name" property to have the same name as another slide. This,
while most likely less common, can cause errors, such as when setting a "Start
>From Slide" property, or even retrieving the slide by name in the API.

Steps to Reproduce:
1. Open a new Impress document
2. Paste and run the following Macro
3.

Sub Main
ThisComponent.DrawPages.insertNewByIndex(0)
Dim oSlide1, oSlide2

oSlide1 = ThisComponent.DrawPages.getByIndex(0)
oSlide2 = ThisComponent.DrawPages.getByIndex(1)

oSlide1.Name = "SlideOne"
oSlide2.Name = "SlideOne"

MsgBox("The Slide names are:" & Chr$(13) & "oSlide1: " & oSlide1.Name() &
Chr$(13) & "oSlide2: " & oSlide2.Name())
End Sub

Actual Results:
Current: Results in two slides being named identically.

Expected Results:
Expected: Should throw an error, or perhaps silently append a number to the
slide name.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 2; OS: Windows 6.1 Service Pack 1 Build 7601; UI render:
Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to