# HG changeset patch # User Ingo Weinzierl # Date 1324984385 0 # Node ID cb5ab84505b72dae6ebdddbd5de96e195f6cc4ef # Parent 843eed27390d3adcce7b0232b46b006f69847709 Set the chart export size to -1, so that the FLYS server is able to distinguish between an export and the query to display a chart. flys-client/trunk@3548 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 843eed27390d -r cb5ab84505b7 flys-client/ChangeLog --- a/flys-client/ChangeLog Tue Dec 27 10:09:10 2011 +0000 +++ b/flys-client/ChangeLog Tue Dec 27 11:13:05 2011 +0000 @@ -1,3 +1,10 @@ +2011-12-27 Ingo Weinzierl + + * src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java: + Set widt=-1 and height=-1 for exports. This allows the server to + distinguish between a chart export (as PNG, PDF and SVG) and the display + in the UI. + 2011-12-27 Ingo Weinzierl * src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties, diff -r 843eed27390d -r cb5ab84505b7 flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Tue Dec 27 10:09:10 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Tue Dec 27 11:13:05 2011 +0000 @@ -77,7 +77,7 @@ downloadPNG = new ImgLink( baseUrl + MSG.downloadPNG(), - chartTab.getExportUrl(1280, 1024, "png"), + chartTab.getExportUrl(-1, -1, "png"), 20, 20);