[fdo-commits] r113 - branches/3.2.x/Providers/WMS/Src/Provider

svn_fdo at osgeo.org svn_fdo at osgeo.org
Wed Jan 24 16:50:34 EST 2007


Author: romicadascalescu
Date: 2007-01-24 16:50:34 -0500 (Wed, 24 Jan 2007)
New Revision: 113

Modified:
   branches/3.2.x/Providers/WMS/Src/Provider/FdoWmsSelectCommand.cpp
Log:
Fixed WMS: Default width and height are not accepted - fixed Linux build issue

Modified: branches/3.2.x/Providers/WMS/Src/Provider/FdoWmsSelectCommand.cpp
===================================================================
--- branches/3.2.x/Providers/WMS/Src/Provider/FdoWmsSelectCommand.cpp	2007-01-24 21:23:24 UTC (rev 112)
+++ branches/3.2.x/Providers/WMS/Src/Provider/FdoWmsSelectCommand.cpp	2007-01-24 21:50:34 UTC (rev 113)
@@ -826,7 +826,7 @@
     double deltaExtentsY = fabs(dMaxY - dMinY);
  
     // Adjust resolution to the next power of 2
-    FdoSize maxresolution = max(resolutionX,resolutionY);
+    FdoSize maxresolution = (((resolutionX) > (resolutionY)) ? (resolutionX) : (resolutionY));
     FdoSize power2resolution;
     for (power2resolution=1; power2resolution<MAXPOWER2RESOLUTION && power2resolution<maxresolution; power2resolution<<=1)
         ;



More information about the fdo-commits mailing list