[fusion-commits] r2555 - trunk/widgets/QuickPlot

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Jul 25 02:38:20 PDT 2012


Author: liuar
Date: 2012-07-25 02:38:19 -0700 (Wed, 25 Jul 2012)
New Revision: 2555

Modified:
   trunk/widgets/QuickPlot/PlotAsPDF.php
Log:
On behalf of Ted Yang.
fix the ticket 2083: http://trac.osgeo.org/mapguide/ticket/2083
	
The submission is mainly fix the problem that X,Y coordinate is not right in Fusion QuickPlot

Modified: trunk/widgets/QuickPlot/PlotAsPDF.php
===================================================================
--- trunk/widgets/QuickPlot/PlotAsPDF.php	2012-07-25 09:36:56 UTC (rev 2554)
+++ trunk/widgets/QuickPlot/PlotAsPDF.php	2012-07-25 09:38:19 UTC (rev 2555)
@@ -309,9 +309,10 @@
             $fontSize = 9; $decimals = 6; $padding = 5; $textHeight = 5;
             
             $normalizedBox = $_POST["normalizedBox"];
-            $extent_cs = explode(",",$normalizedBox);//0,1 ; 4,5
-            $lefttop_cs = " x:".number_format($extent_cs[0], $decimals).", y:".number_format($extent_cs[1], $decimals)."   ";
-            $rightbuttom_cs = " x:".number_format($extent_cs[4], $decimals).", y:".number_format($extent_cs[5], $decimals)."   ";
+            
+            $extent_cs = explode(",",$normalizedBox);//2,3 ; 6,7
+            $lefttop_cs = " x:".number_format($extent_cs[6], $decimals).", y:".number_format($extent_cs[7], $decimals)."   ";
+            $rightbuttom_cs = " x:".number_format($extent_cs[2], $decimals).", y:".number_format($extent_cs[3], $decimals)."   ";
             $pdf->SetFont($font, "", $fontSize, "", true);
 
             //cell width



More information about the fusion-commits mailing list