Issue 128527

Summary: .getPresentation() unavailable in Impress if Draw is opened first
Product: App Dev Reporter: Czesław Wolański <czeslaw.wolanski>
Component: apiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Minor    
Priority: P5 (lowest)    
Version: 4.1.12   
Target Milestone: ---   
Hardware: PC   
OS: Windows, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Impress file to test the issue none

Description Czesław Wolański 2022-07-12 06:34:47 UTC
Created attachment 87131 [details]
Impress file to test the issue

The problem was reported and analyzed on the English forum:
"Impress Macro Not Working After Opening Draw"
https://forum.openoffice.org/en/forum/viewtopic.php?t=108051


Steps to reproduce:*
1. Open the attached file.
2. Press the "Slide Show" button to start a slide show.
3. Finish the slide show.
4. Close the file and then quit OpenOffice.
5. Launch OpenOffice
6. Open new Draw document.
7. Open the attached file.
8. Press the "Slide Show" button.

Result: This time an error message is displayed:
        "BASIC runtime error.
         Property or method not found: getPresentation."




---------------------------

* The attached file "StartPres.odp" contains a macro:


Sub Main
  
  oPres = ThisComponent.getPresentation()
  
  oPres.Start()
 
End Sub