View Issue Details

IDProjectCategoryView StatusLast Update
0008706ScribusScripterpublic2011-11-14 20:15
Reportermeiradarocha Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.4.0svn 
Summary0008706: setScaleImageToFrame don't works in script imported image
DescriptionThis 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 Reproduce1. 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.
TagsNo tags attached.
Patch

Activities

2010-01-13 03:09

 

meiradarocha

2010-01-13 11:13

reporter   ~0023077

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).

meiradarocha

2010-01-13 11:14

reporter   ~0023078

Running the attached script a second time, all works.

meiradarocha

2011-10-20 02:34

reporter   ~0027059

Fixed in Scribus 1.4.0-rc6.

jghali

2011-10-20 06:34

administrator   ~0027062

Thanks for letting us know!

Issue History

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