Switched coordinates in image selection form template
authorThierry Florac <thierry.florac@onf.fr>
Mon, 08 Oct 2018 17:05:32 +0200
changeset 136 51ffb2e0ef3c
parent 135 3b2790900c07
child 137 b9ac32b97fa9
Switched coordinates in image selection form template
src/pyams_file/zmi/templates/image-selection.pt
--- a/src/pyams_file/zmi/templates/image-selection.pt	Tue Sep 25 11:29:52 2018 +0200
+++ b/src/pyams_file/zmi/templates/image-selection.pt	Mon Oct 08 17:05:32 2018 +0200
@@ -4,8 +4,8 @@
 				 thumb_size image.get_image_size();
 				 geometry thumbnails.get_geometry(view.__parent__.selection_name);">
 	<input type="hidden" name="selection.x1" tal:attributes="value geometry.x1" />
-	<input type="hidden" name="selection.y1" tal:attributes="value geometry.x2" />
-	<input type="hidden" name="selection.x2" tal:attributes="value geometry.y1" />
+	<input type="hidden" name="selection.y1" tal:attributes="value geometry.y1" />
+	<input type="hidden" name="selection.x2" tal:attributes="value geometry.x2" />
 	<input type="hidden" name="selection.y2" tal:attributes="value geometry.y2" />
  	<img class="imgareaselect"
 		 data-ams-imgareaselect-parent=".modal-dialog"