View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008226 | Scribus | Scripter | public | 2009-06-29 07:55 | 2009-07-01 22:05 |
Reporter | jameyhg | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | win32 | OS | Windows XP | OS Version | SP3 |
Product Version | 1.3.5svn | ||||
Fixed in Version | 1.3.5svn | ||||
Summary | 0008226: Scripter doesn't allow setting object names (AutoName = true) | ||||
Description | When you use the Scripter plugin to create objects, such as text or image boxes, their object names are not preserved when saving the document. Everything is renamed sequentially: Image1, Image2... Text1, Text2 and so on. | ||||
Steps To Reproduce | Create a new Python script containing the following: ---------- import scribus scribus.createText(150, 150, 300, 300, "ourTextBoxNamed") scribus.setText("Some example text", "ourTextBoxNamed") ---------- Make a new document in Scribus, run this simple script and then open up the Properties window on the text box it creates. Notice the object's name is "ourTextBoxNamed". Now save the document somewhere, close it and re-open it in Scribus. You will notice the name of text box has been changed to "Text1". | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
I added "AutoName = false;" to the end of PageItem::setItemName() in pageitem.cpp, after line 2225. This is a quick workaround fix for this problem. |
|
PageItem::setItemName() must not set the AutoName property. Fixed by modifying scripter directly. |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-06-29 07:55 | jameyhg | New Issue | |
2009-06-29 08:57 | jameyhg | Note Added: 0022051 | |
2009-06-29 18:08 | jghali | Note Added: 0022055 | |
2009-06-29 18:08 | jghali | Status | new => resolved |
2009-06-29 18:08 | jghali | Fixed in Version | => 1.3.5svn |
2009-06-29 18:08 | jghali | Resolution | open => fixed |
2009-06-29 18:08 | jghali | Assigned To | => jghali |
2009-07-01 22:05 | cbradney | Status | resolved => closed |
2009-11-05 20:21 | jghali | Relationship added | has duplicate 0006486 |