Bläddra i källkod

fixed typowq

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45161 15284696-431f-4ddb-bdfa-cd5b030d7da7
Yann Chemin 14 år sedan
förälder
incheckning
e75a18c09b
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      imagery/i.latlong/main.c

+ 2 - 2
imagery/i.latlong/main.c

@@ -89,8 +89,8 @@ int main(int argc, char *argv[])
     ymax = cellhd.north;
     nrows = Rast_window_rows();
     ncols = Rast_window_cols();
-    stepx = abs(xmax-xmin)*(double)ncols;
-    stepy = abs(ymax-ymin)*(double)nrows;
+    stepx = abs(xmax-xmin)/(double)ncols;
+    stepy = abs(ymax-ymin)/(double)nrows;
     
     /*Stolen from r.sun */ 
     /* Set up parameters for projection to lat/long if necessary */