Mercurial > dive4elements > river
changeset 555:33b86f5b1168
Don't crash if there is no transformer.
flys-client/trunk@2078 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 08 Jun 2011 10:57:28 +0000 |
parents | ad2ba6e2b8bd |
children | 046f43e1d305 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java |
diffstat | 2 files changed, 16 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Wed Jun 08 07:31:01 2011 +0000 +++ b/flys-client/ChangeLog Wed Jun 08 10:57:28 2011 +0000 @@ -1,3 +1,8 @@ +2011-06-08 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java: + Don't crash if there is no transformer. + 2011-06-08 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/ProjectList.java: @@ -643,11 +648,11 @@ 2011-05-12 Sascha L. Teichmann <sascha.teichmann@intevation.de> - * src/main/java/de/intevation/flys/client/server/meta/Converter.java: - New. Converts the incoming XML to a more informative way. - - * src/main/java/de/intevation/flys/client/server/MetaDataServiceImpl.java: - Use the new converter. + * src/main/java/de/intevation/flys/client/server/meta/Converter.java: + New. Converts the incoming XML to a more informative way. + + * src/main/java/de/intevation/flys/client/server/MetaDataServiceImpl.java: + Use the new converter. 2011-05-12 Raimund Renkert <rrenkert@intevation.de>
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java Wed Jun 08 07:31:01 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java Wed Jun 08 10:57:28 2011 +0000 @@ -160,6 +160,9 @@ * @param evt The ZoomEvent that stores the coordinates for zooming. */ public void onZoom(ZoomEvent evt) { + if (transformer == null) { + return; + } double[] lower = transformer.transform(evt.getStartX(), evt.getStartY()); double[] upper = transformer.transform(evt.getEndX(), evt.getEndY()); @@ -174,6 +177,9 @@ public void onPan(PanEvent event) { + if (transformer == null) { + return; + } int[] start = event.getStartPos(); int[] end = event.getEndPos();