[Mapbender-commits] r8138 - branches/2.7/http/print/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Sep 12 06:24:27 EDT 2011
Author: kmq
Date: 2011-09-12 03:24:27 -0700 (Mon, 12 Sep 2011)
New Revision: 8138
Modified:
branches/2.7/http/print/classes/mbPermanentImgDecorator.php
Log:
calculate vertical offset correctly
Modified: branches/2.7/http/print/classes/mbPermanentImgDecorator.php
===================================================================
--- branches/2.7/http/print/classes/mbPermanentImgDecorator.php 2011-09-12 09:26:05 UTC (rev 8137)
+++ branches/2.7/http/print/classes/mbPermanentImgDecorator.php 2011-09-12 10:24:27 UTC (rev 8138)
@@ -101,7 +101,7 @@
$pdf_marker_off_y = ($marker->offset_y * 25.4)/$imagedpi; //unit: mm
// top edge of the image on the pdf
- $pdf_img_off_y = $pdf_map_dy - ($pdf_map_y1 + $img_off_y * ($pdf_map_dy/$map_dy)) + $pdf_marker_off_y; //unit: mm
+ $pdf_img_off_y = ($pdf_map_dy + $pdf_map_y1) - ( $img_off_y * ($pdf_map_dy/$map_dy)) - $pdf_marker_off_y; //unit: mm
// width of the image on the pdf
$pdf_img_dy = ($marker->width * 25.4)/$imagedpi; //unit: mm
More information about the Mapbender_commits
mailing list