mojtabahdpr / osm-bundler

Automatically exported from code.google.com/p/osm-bundler
0 stars 0 forks source link

Scaling factor of 1 not accepted #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call Bundler from ppt-gui with photoScalingFactor = 1

What is the expected output? What do you see instead?
The photos should not be scaled down, but it picks a random scaling argument 
instead (usually scale down to 1200 pixel)

What version of the product are you using? On what operating system?
v0.1 on Windows 7 x64

Please provide any additional information below.
In osmbundler/__init__.py, just replace
if val>0 and val<1: self.photoScalingFactor = val
with 
if val>0 and val<=1: self.photoScalingFactor = val

Original issue reported on code.google.com by bruno.ma...@gmail.com on 16 Oct 2014 at 8:16