Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] ViewportModelImpl setCRS bug

I was using a ViewportModelListener and was having a problem getting the new CRS when the CRS was changed. I tracked this down to the following line in ViewportModelImpl.java

notifyListeners(new ViewportModelEvent(this, EventType.CRS, oldCRS, newCRS));

The order of the oldCRS and newCRS is incorrect. As a results I have updated it to:

notifyListeners(new ViewportModelEvent(this, EventType.CRS, newCRS, oldCRS));

Emily


Back to the top