Apache OpenOffice (AOO) Bugzilla – Issue 9058
Accessing redlines from Basic crashes OOo
Last modified: 2013-08-07 14:43:39 UTC
The following Basic script crashes OOo if called when a Writer document with redlines is active: Sub WalkChangesWriter Dim oDocument as Object Dim oRL as Object Dim oEnum as Object dim oElem as Object oDocument = StarDesktop.ActiveFrame.Controller.Model oRL=oDocument.getRedLines() oEnum=oRL.createEnumeration() while oEnum.hasMoreElements() oElem=oEnum.nextElement() wend End Sub
Created attachment 3519 [details] This file contains the mentioned script called by an event handler when you open it.
I see this issue is still in the unconfirmed state. Is there any chance of it being fixed anytime soon ? It's blocking a project I have, and I'm not familiar enough with the innards of OOo to fix it myself. thx.
Bug is still present in 644, on Linux and Windows
Confirmed in local build 644m7-s1.8576 on Windows. SBA->DVO: Redlining is your's...
dvo->dfrick: Sorry for the delay, we've been busy... :-) Anyway, fixed now. The fix is in child workspace sw009 which means it will probably get into build SRX644-m10 or something. (That's a bit hard to predict.) Should be in time for OOo 1.1 beta2, anyway. If you're in a hurry, update sw/source/core/unocore/unoredline.cxx to version 1.18.8.1.6.1.26.1 and recompile. That should do it. P.S.: oDocument = StarDesktop.ActiveFrame.Controller.Model You're an StarOffice 5.2 user? oDocument = thiscomponent is so much nicer... (Assuming your macro is bound to a document.)
Thanks, no problem for the delay, better late than never :-) (It went significantly faster when I changed "platform" from Linux to All...) Regarding the outdated syntax, well I pumped it straight out of some macros in the standard library, so maybe I should open a new bug called "standard macro library contains outdated syntax", but I'm too lazy to do it now. Thanks for the tip anyway.
.
reset to fixed
Verified
...in sw009
This issue is still present in the 2003-05-14 Beta.
Sorry. Got mixed up in the versions.
All tasks are verified in OOo 1.1 Beta2.
closed ...