Summary: | Optional macro parameter defined as Integer has type Variant/String causing type errors in the macro | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | bugsInLibreOffice |
Component: | BASIC | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | bugsInLibreOffice, erack, himajin100000, luismiguel.lacosta, sberg.fun, xiscofauli |
Priority: | medium | ||
Version: | Inherited From OOo | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=36737 https://bugs.documentfoundation.org/show_bug.cgi?id=79426 https://bugs.documentfoundation.org/show_bug.cgi?id=125180 https://bugs.documentfoundation.org/show_bug.cgi?id=149959 |
||
Whiteboard: | target:6.4.0 | ||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 127592 | ||
Attachments: | Reproducible document |
Description
bugsInLibreOffice
2018-07-05 05:31:27 UTC
Created attachment 143313 [details]
Reproducible document
Run Main().
Expected Result:7
Actual Result:6
I can confirm this. Tested with Windows 8 LibreOffice info: Versión: 6.0.4.2 Id. de compilación: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf Subprocs. CPU: 2; SO: Windows 6.3; Repres. IU: predet.; Configuración regional: es-ES (es_ES); Calc: CL Also reproduced in LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4 @Stephan, @Eike, I thought you could be interested in this issue... quite unsure, but possible source code pointer? https://opengrok.libreoffice.org/xref/core/basic/source/runtime/runtime.cxx?r=2fbd7d24#4040 https://opengrok.libreoffice.org/xref/core/basic/source/runtime/runtime.cxx?r=2fbd7d24#4044 -p = new SbxVariable(); +p = new SbxVariable(pParam-> eType); Submission done. https://gerrit.libreoffice.org/#/c/77684/ Tomoyuki Kubota committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/ff6383face219970a0435b008a0439643a61043e%5E%21 tdf#118544 set correct type for optional parameter It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |