[1.3.b54] Negative numbers in hex grid adjustment

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

Post Reply
User avatar
torstan
Great Wyrm
Posts: 1887
Joined: Wed Sep 27, 2006 6:50 am
Contact:

[1.3.b54] Negative numbers in hex grid adjustment

Post by torstan »

I was messing around with hex grids and wanted to move the grid left. I started entering -10 into the x field and got the following error:

Code: Select all

java.lang.NumberFormatException: For input string: "-"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at net.rptools.maptool.client.tool.GridTool.getInt(GridTool.java:215)
	at net.rptools.maptool.client.tool.GridTool.getInt(GridTool.java:212)
	at net.rptools.maptool.client.tool.GridTool.copyControlPanelToGrid(GridTool.java:195)
	at net.rptools.maptool.client.tool.GridTool.access$6(GridTool.java:186)
	at net.rptools.maptool.client.tool.GridTool$UpdateGridListener.keyReleased(GridTool.java:457)
	at java.awt.Component.processKeyEvent(Unknown Source)
	at javax.swing.JComponent.processKeyEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:24)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Hope that gets fixed, but there's an easy workaround for the time being.

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: [1.3.b54] Negative numbers in hex grid adjustment

Post by Phergus »

This applies to all grid types. I think somebody may have already posted this one recently.

The workaround is to enter the number and then put the "-" in front of it.

User avatar
torstan
Great Wyrm
Posts: 1887
Joined: Wed Sep 27, 2006 6:50 am
Contact:

Re: [1.3.b54] Negative numbers in hex grid adjustment

Post by torstan »

Ah, apologies for the double post then. I had a quick hunt and couldn't find it.

Move along, nothing to see here. :)

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: [1.3.b54] Negative numbers in hex grid adjustment

Post by Phergus »

I don't recall if it was actually posted as a bug report or somebody posted it in the announcement thread so that it could be ignored.

User avatar
trevor
Codeum Arcanum (RPTools Founder)
Posts: 11311
Joined: Mon Jan 09, 2006 4:16 pm
Location: Austin, Tx
Contact:

Re: [1.3.b54] Negative numbers in hex grid adjustment

Post by trevor »

This is fixed in 1.3b59
Dreaming of a 1.3 release

Post Reply

Return to “Resolved”