getAllText Sometimes Failing

"Matt Miller" <matt.miller-97jfqw80gc5Wk0Htik3J/[email protected]>
Newsgroups gmane.comp.graphics.scribus
Message-ID <[email protected]>
I've attached a test case that seems to show that getAllText() is sometimes succeeding and sometimes failing. When it fails it doesn't throw an error, but it just retrieves a string of length 1, instead of retrieving the actual text of the chain. I see this on 1.5.6.1 and 1.5.7.svn, in both Linux and Windows.

To run the test open the .sla and from the script menu execute chapter_heading_style.py.  The text frame name "debug" at the very top will contain the word "Error" if the getAllText() call in the script fails.  What I see is that it works fine the first time, then it fails on every subsequent try, until I alter something on the document.  For example, if I grab and move the "debug" text frame a bit then getAllText() will succeed once, and then fail repeatedly again.  Saving and reopening the document also causes the script to work again the first time.

Thanks.


--

  Matt Miller
  mailto:matt.miller-97jfqw80gc5Wk0Htik3J/[email protected]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20210303/83076fa0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7.25x9-Wide-Margin-Self-Pronouning_Mal.sla
Type: application/octet-stream
Size: 83787 bytes
Desc: not available
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20210303/83076fa0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chapter_heading_style.py
Type: application/octet-stream
Size: 3084 bytes
Desc: not available
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20210303/83076fa0/attachment-0001.obj>
___
Scribus Mailing List: [email protected]
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.