﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5070	Exception in cadastre-fr plugin, when georeferencing an image	Novalpha	pieren	"What steps will reproduce the problem?
 1. Click ""Cadastre -> Georeference an image"" and choose a Cadastre raster sheet to grab
 2. Answer ""OK"" to the popup asking to click on the first corner
 3. Click anywhere on the map
 4. Here is the crash of the plugin

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if
possible.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2010-04-26 01:31:31
Last Changed Author: jttt
Revision: 3208
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2010-04-25 15:31:07 +0200 (Sun, 25 Apr 2010)
Last Changed Rev: 3208

Memory Usage: 232 MB / 506 MB (46 MB allocated, but free)
Java version: 1.6.0_17, Apple Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Mac OS X

Dataset consistency test:
No problems found


Plugins: cadastre-fr
Plugin cadastre-fr (Version: 21202)

java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
	at java.awt.image.BufferedImage.<init>(BufferedImage.java:324)
	at cadastre_fr.GeorefImage.crop(GeorefImage.java:339)
	at cadastre_fr.WMSLayer.cropImage(WMSLayer.java:591)
	at cadastre_fr.MenuActionGrabPlanImage.mouseClicked(MenuActionGrabPlanImage.java:153)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6351)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
	at java.awt.Component.processEvent(Component.java:6113)
	at java.awt.Container.processEvent(Container.java:2085)
	at java.awt.Component.dispatchEventImpl(Component.java:4714)
	at java.awt.Container.dispatchEventImpl(Container.java:2143)
	at java.awt.Component.dispatchEvent(Component.java:4544)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4291)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
	at java.awt.Container.dispatchEventImpl(Container.java:2129)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4544)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

}}}
"	defect	closed	normal		Plugin cadastre-fr		fixed	georeference an image	
