View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002129 | Scribus | Scripter | public | 2005-06-26 11:11 | 2005-06-28 13:03 |
Reporter | gf2e | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Macintosh / Aqua | OS | MacOS X | OS Version | 10.4 |
Product Version | 1.3.0cvs | ||||
Fixed in Version | 1.3.0cvs | ||||
Summary | 0002129: groupObjects API function and documentation are inconsistent. | ||||
Description | The groupObjects command is documented as either: 1. Grouping the objects in a list of strings you provide it, _or_ 2. If you give it no list, grouping the selected objects together. In fact, it will _always_ include the selected objects in the group. | ||||
Steps To Reproduce | Select an object, say named "foo" Run "groupObjects(["bar", "moof"]) You will find that foo, bar and moof are joined. If you execute "deselectAll()" first, only bar and moof are joined. | ||||
Additional Information | I don't know whether the documented behaviour or the actual behaviour are more correct. I would tend to suggest that the documented behaviour is more correct. It is possible that you do not want to group the selected object with the objects that you are grouping together. If that's the case, then you would need to de-select the current object first. This could irritate users - a script shouldn't just de-select everything for no reason. The script could of course de-select and re-select, but that seems like something that shouldn't be needed. I do think that there should be a single command to get a list of all selected objects. getAllSelected, say. If this command were added, it would be easy for a script writer to execute: groupObjects(getAllSelected()+['foo','bar']) | ||||
Tags | No tags attached. | ||||
Patch | |||||
child of | 0003812 | acknowledged | Metabug: Grouped objects |
|
Agreed that the documented behaviour is better. I could've sworn there was already something to return the full selection; this also needs fixing. |
|
Done; behaviour now matches docs. Please report any similar issues. In future they'll be simpler to fix. Similarly, please report functions that nuke your selection, they shouldn't. |
Date Modified | Username | Field | Change |
---|---|---|---|
2005-06-26 11:11 | gf2e | New Issue | |
2005-06-26 11:14 |
|
Note Added: 0005150 | |
2005-06-26 11:15 |
|
Status | new => assigned |
2005-06-26 11:15 |
|
Assigned To | => ringerc |
2005-06-26 14:00 |
|
Status | assigned => resolved |
2005-06-26 14:00 |
|
Fixed in Version | => 1.3.0cvs |
2005-06-26 14:00 |
|
Resolution | open => fixed |
2005-06-26 14:00 |
|
Note Added: 0005155 | |
2005-06-28 13:03 | cbradney | Status | resolved => closed |
2006-05-13 17:13 | christoph_s | Relationship added | child of 0003812 |