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

            Bug ID: 170880
           Summary: IMPRESS [API] startWithArguments fails with CustomShow
           Product: LibreOffice
           Version: 24.2.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When attempting to start a Custom Slideshow using the StartWithArguments
command in the API, an Illegal Argument Exception is thrown every time. After
the exception has occurred, the Slideshow cannot be started at all, Custom or
the normally ordered Slideshow, neither programmatically or manually until the
presentation has been closed and re-opened. 
The Custom slideshow can be started and ran without error manually, it can also
be started using the API by setting the "CustomShow" property and then using
only the start command.
The error triggered by using startWithArguments is:
BASIC runtime error.
An exception occurred 
Type: com.sun.star.lang.IllegalArgumentException
Message: at
C:/cygwin64/home/buildslave/source/libo-core/sd/source/ui/slideshow/slideshowimpl.cxx:3390.

Steps to Reproduce:
1. Open a new Impress Document
2. Create and save a Custom Slideshow named "Test". 
3. Run the following macro.

Sub Main
Dim Args(1) As New com.sun.star.beans.PropertyValue
  Args(0).Name = "CustomShow"
  Args(0).Value = "Test" 

ThisComponent.Presentation.startWithArguments(Args)
End Sub

Actual Results:
The above mentioned error will be triggered, the Custom Slideshow will NOT be
played, and the slideshow will no longer be able to be started, even manually
until the document is closed and reopened. 


Expected Results:
The Custom Slideshow should be started.


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