[Libreoffice-bugs] [Bug 112466] Cannot import libreoffice 5.2 basic macro library into libreoffice 5.3
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Oct 15 17:13:56 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=112466
Frederic Bron <frederic.bron at m4x.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |UNCONFIRMED
Ever confirmed|1 |0
--- Comment #3 from Frederic Bron <frederic.bron at m4x.org> ---
OK, I have found something to reproduce the bug. Apparently it is not related
to the encrypted macros:
Tools/Macros/Manage macros/Libreoffice Basic.../Manage.../Libraries/New...
Type Library1 as name
Then click on Edit
and replace
"Sub Main
End Sub"
By
Option Explicit
Option Base 0
Private Function foo(dates() as Double, amounts() as Double, dateN as Double,
day_q as Double) as Double
foo=0#
Dim k as Long
For k=0 To UBound(dates())
If amounts(k)<>0. Then
foo=foo+amounts(k)*day_q^(dateN-dates(k))
End If
Next
End Function
If you have time, you can click Save. Otherwise, it will be the same: this
makes libreoffice use 100% of CPU forever.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171015/378937c0/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list