View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008706 | Scribus | Scripter | public | 2010-01-13 03:09 | 2011-11-14 20:15 |
Reporter | meiradarocha | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.4.0svn | ||||
Summary | 0008706: setScaleImageToFrame don't works in script imported image | ||||
Description | This code works in console but doesn't work in script (setScaleImageToFrame don't set scaletoframe, in line 1 anda 4, if a image has imported in the same script): 1 setScaleImageToFrame(1,0,getSelectedObject()) 2 s = getImageScale(getSelectedObject()) 3 m = max(s[0],s[1]) 4 setScaleImageToFrame(0,1,getSelectedObject()) 5 scaleImage(m,m,getSelectedObject()) | ||||
Steps To Reproduce | 1. Import a image. 2. Run the code snipet in console. Code works OK. 3. In a script that import a image, and had the same code, setScaleImageToFrame don't set scaletoframe. | ||||
Tags | No tags attached. | ||||
Patch | |||||
2010-01-13 03:09
|
|
|
Actualy, is not "scaletoframe" parameter that don't work, but the "proportional" parameter. It is ever zero (image scaled but distorted to fit in frame). |
|
Running the attached script a second time, all works. |
|
Fixed in Scribus 1.4.0-rc6. |
|
Thanks for letting us know! |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-01-13 03:09 | meiradarocha | New Issue | |
2010-01-13 03:09 | meiradarocha | File Added: Foto, legenda, credito (2010-01-12a).py | |
2010-01-13 11:13 | meiradarocha | Note Added: 0023077 | |
2010-01-13 11:14 | meiradarocha | Note Added: 0023078 | |
2011-10-20 02:34 | meiradarocha | Note Added: 0027059 | |
2011-10-20 06:34 | jghali | Note Added: 0027062 | |
2011-10-20 06:34 | jghali | Status | new => resolved |
2011-10-20 06:34 | jghali | Fixed in Version | => 1.4.0svn |
2011-10-20 06:34 | jghali | Resolution | open => fixed |
2011-10-20 06:34 | jghali | Assigned To | => jghali |
2011-11-14 20:15 | cbradney | Status | resolved => closed |