[bug:b89] setSize()

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice, MapTool BugReport Manager

Post Reply
User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

[bug:b89] setSize()

Post by wolph42 »

Again short version:

- set a token to freesize.
- impersonate it.
- run:

Code: Select all

 [setSize("Medium")]
which renders an error (for any of the preset sizes): "invalid token size 'medium' in function setSize"

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: [bug:b89] setSize()

Post by Azhrei »

The problem is that the snapToScale attribute is turned off when the image size is "native" or "free", and it's not turned back on again when changing the size to something else! (Oops.) So when the code tries to find a footprint scale that matches nothing does.

I've added the call to setSnapScale() so it'll work in b90.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: [bug:b89] setSize()

Post by wolph42 »

Azhrei wrote:The problem is that the snapToScale attribute is turned off when the image size is "native" or "free", and it's not turned back on again when changing the size to something else! (Oops.) So when the code tries to find a footprint scale that matches nothing does.

I've added the call to setSnapScale() so it'll work in b90.
woot!

This fix I really need, so happy here!!

Post Reply

Return to “Resolved”