Apache OpenOffice (AOO) Bugzilla – Issue 7003
No screen-update after unlockControllers
Last modified: 2013-02-24 21:09:55 UTC
oDocument = oDesktop.loadComponentFromURL("file:///"+sDocName, "_blank", 0, mArgs) oDocument.lockControllers() ... do some replacements in the document oDocument.unlockControllers() (StarBasic-Code) The problem: After that I often have some "rubbish" on the screen, showing the original text of the document on some places and the replaced text on other places.
implementation issue
accepted.
I couldn't reproduce this behaviour with OpenOffice.org 1.0, maybe some further information about '... do some replacements in the document' would be helpful.
sKeys is an array. sValues is an array. sKeys(i) should be replace be a sValue(i). There are about 400 Pairs to replace. The "rubbish" appears only sometimes and vanishes when the window is redrawn by some cause. for i = LBound(sKeys()) to UBound(sKeys()) ' Replace Text oReplace.SearchString = "<"+sKeys(i)+">" oReplace.SearchCaseSensitive = FALSE oReplace.SearchWords = FALSE oReplace.ReplaceString = sValues(i) oDocument.replaceAll(oReplace) next i
TL->CN: I could not reproduce this with OO 643 E or current SO srx 644. Maybe a bugdoc with macro would be helpfull.
cn->martho: I could not reproduce this behavior. Please can you attach a bugdoc, means a document including basic macro? Otherwise I need to close this bug without any fix.
martho->cn: I couldn't make a macro which reproduces the behavior 100%, not even 1%. It's in daily work that the behavior appears, in about (*wild guess*) 1 time of 500. We are calling the basic marco via DDE from a C++-App, perhaps OO has to be closed first to get more chances to reproduce it. My intention when I started the issue was that it's a generall fault, but it doesn't seem to be. So my suggestion is to close the issue. If I get a reproduceable version, I will reopen it (if this is possible) or make a new one. Thanx for your afford!
CN: close this task
CN: close