Issue 9058 - Accessing redlines from Basic crashes OOo
Summary: Accessing redlines from Basic crashes OOo
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 644
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-07 20:51 UTC by Unknown
Modified: 2013-08-07 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
This file contains the mentioned script called by an event handler when you open it. (6.50 KB, application/octet-stream)
2002-11-07 23:20 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-11-07 20:51:32 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
Comment 1 Unknown 2002-11-07 23:20:08 UTC
Created attachment 3519 [details]
This file contains the mentioned script called by an event handler when you open it.
Comment 2 Unknown 2002-12-28 18:09:11 UTC
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.
Comment 3 Unknown 2003-03-24 13:49:19 UTC
Bug is still present in 644, on Linux and Windows
Comment 4 stefan.baltzer 2003-03-24 17:54:37 UTC
Confirmed in local build 644m7-s1.8576 on Windows.
SBA->DVO: Redlining is your's...
Comment 5 openoffice 2003-03-27 18:12:09 UTC
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.)
Comment 6 Unknown 2003-03-28 09:51:42 UTC
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.
Comment 7 openoffice 2003-04-09 11:23:25 UTC
.
Comment 8 eric.savary 2003-04-09 13:29:26 UTC
reset to fixed
Comment 9 eric.savary 2003-04-09 13:29:46 UTC
Verified
Comment 10 eric.savary 2003-04-09 13:30:19 UTC
...in sw009
Comment 11 Unknown 2003-05-15 14:32:42 UTC
This issue is still present in the 2003-05-14 Beta.
Comment 12 Unknown 2003-05-15 14:35:41 UTC
Sorry. Got mixed up in the versions.
Comment 13 thorsten.ziehm 2003-05-20 10:28:24 UTC
All tasks are verified in OOo 1.1 Beta2.
Comment 14 thorsten.ziehm 2003-05-20 10:37:15 UTC
closed ...