[mapserver-commits] r9917 -
branches/branch-5-6/mapserver/mapscript/swiginc
svn at osgeo.org
svn at osgeo.org
Fri Mar 5 09:57:43 EST 2010
Author: aboudreault
Date: 2010-03-05 09:57:43 -0500 (Fri, 05 Mar 2010)
New Revision: 9917
Modified:
branches/branch-5-6/mapserver/mapscript/swiginc/mapzoom.i
Log:
fixed last commit, maxx/minx --> maxy/miny
Modified: branches/branch-5-6/mapserver/mapscript/swiginc/mapzoom.i
===================================================================
--- branches/branch-5-6/mapserver/mapscript/swiginc/mapzoom.i 2010-03-05 14:53:33 UTC (rev 9916)
+++ branches/branch-5-6/mapserver/mapscript/swiginc/mapzoom.i 2010-03-05 14:57:43 UTC (rev 9917)
@@ -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