![]() |
|
![]() |
![]() |
|
||
| · Hosting provided by Anduin.net / Øverby Consulting · | ||||||
| Anonymous | Login | Signup for a new account | 2009-11-21 07:44 CET |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0008285 | [Scribus] Scripter | crash | always | 09-Jul-14 16:40 | 09-Aug-11 00:14 | ||
| Reporter | ciops | View Status | public | ||||
| Assigned To | jghali | ||||||
| Priority | normal | Resolution | fixed | Platform | intel | ||
| Status | closed | OS | windows | ||||
| Projection | none | OS Version | xp sp3 | ||||
| ETA | none | Fixed in Version | 1.3.3.14svn | Product Version | 1.3.3.13 | ||
| Target Version | Product Build | ||||||
| Summary | 0008285: while loop with textOverflows crashes scribus | ||||||
| Description | I do not understand why if I run the following script with a messageBox Command it works, else with the messageBox line commented it halts scribus (I must kill scribus.exe process to stop having 100% Cpu working). | ||||||
| Steps To Reproduce |
run this script: from scribus import * setUnit(1) descFrameID="DESC_2" createText(100,100,100,1, descFrameID) setText("bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla ",descFrameID) H = getSize(descFrameID)[1] ovfc=textOverflows(descFrameID) while ovfc>0: if ovfc==0: break else: H += 1 sizeObject(getSize(descFrameID)[0], H ,descFrameID) messageBox("caption", "Overflow character: "+str(textOverflows(descFrameID))+"\n new Frame Height:"+str(H), icon=ICON_NONE, button1=BUTTON_OK, button2=BUTTON_NONE, button3=BUTTON_NONE) ovfc=textOverflows(descFrameID) |
||||||
| Additional Information | |||||||
| Tags | No tags attached. | ||||||
| Attached Files |
|
||||||
|
|
|||||||
Notes |
|
|
(0022202) jghali (administrator) 09-Jul-17 00:41 |
The frame layout is tied to redraw in 1.3.3.x. As redraw is normally disabled while script is running, a way to redraw frames is needed. Calling messageBox() allows that indirectly. Here you will need to call redrawAll() after sizeObject(). You will need also latest 1.3.3.14svn snapshot as i fixed a bug which prevented redrawAll() to work as expected : https://sourceforge.net/projects/scribus/files/scribus-svn/scribus-1.3.3.14svn-090716-snapshot.exe/download [^] |
|
(0022203) jghali (administrator) 09-Jul-17 00:44 |
Forgot a thing : that redrawAll() is not needed in 1.3.5svn as layout and redraw are now recoupled. |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group |