[mapserver-commits] r9918 - trunk/mapserver/mapscript/swiginc

svn at osgeo.org svn at osgeo.org
Fri Mar 5 10:00:00 EST 2010


Author: aboudreault
Date: 2010-03-05 09:59:59 -0500 (Fri, 05 Mar 2010)
New Revision: 9918

Modified:
   trunk/mapserver/mapscript/swiginc/mapzoom.i
Log:
fixed changeset 9915, maxx/minx --> maxy/miny

Modified: trunk/mapserver/mapscript/swiginc/mapzoom.i
===================================================================
--- trunk/mapserver/mapscript/swiginc/mapzoom.i	2010-03-05 14:57:43 UTC (rev 9917)
+++ trunk/mapserver/mapscript/swiginc/mapzoom.i	2010-03-05 14:59:59 UTC (rev 9918)
@@ -226,13 +226,13 @@
         /* ----------------------------------------------------------- */
         /*      check if the values passed are consistent min <= max.   */
         /* ----------------------------------------------------------- */
-        /* This is not a typo: "maxx >= minx". For historical reason, we
-         * keep this as it is. See documentation for more info about this check. */
-        if (poPixRect->maxx >= poPixRect->minx) {
+        if (poPixRect->minx >= poPixRect->maxx) {
             msSetError(MS_MISCERR, "image rectangle minx >= maxx", "mapscript::mapObj::zoomRectangle()");
             return MS_FAILURE;
         }
-        if (poPixRect->miny >= poPixRect->maxy) {
+        /* This is not a typo: "maxx >= minx". For historical reason, we
+         * keep this as it is. See documentation for more info about this check. */
+        if (poPixRect->maxy >= poPixRect->miny) {
             msSetError(MS_MISCERR, "image rectangle maxy >= miny", "mapscript::mapObj::zoomRectangle()");
             return MS_FAILURE;
         }



More information about the mapserver-commits mailing list