Bug 130309

Summary: TTS doesn't start and opens up Libreoffice Basic
Product: LibreOffice Reporter: Niroj <nirose>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal CC: mikekaganski, oliver.brinzing
Priority: medium    
Version: 6.4.0.3 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 127592    

Description Niroj 2020-01-31 09:19:34 UTC
Description:
After selection of text and press the TTS button. It opens up a Error.

BASIC syntax error.
Variable nPage already defined.

https://i.imgur.com/awCO2B2.png

Steps to Reproduce:
1.Select Text
2.Press the TTS button

Actual Results:
The error opens up on BASIC

Expected Results:
The TTS engine should start audio


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Oliver Brinzing 2020-01-31 12:18:03 UTC
I remember there was a change of handling duplicate variable declaration

This will fail with LO 6.4.0.3 now:

"BASIC syntax error. Variable s already defined."

REM  *****  BASIC  *****
Sub Main()
  Call Test("Hello")
End Sub

Sub Test(s as String)
Dim s as String
  MsgBox s
End Sub