Explorar el Código

r.sun: fix copy paste error when using both lat and lon raster

Anna Petrasova hace 5 años
padre
commit
2d6a201a5e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      raster/r.sun/main.c

+ 1 - 1
raster/r.sun/main.c

@@ -915,7 +915,7 @@ int INPUT_part(int offset, double *zmax)
 
     if (longin != NULL) {
 	cell7 = Rast_allocate_f_buf();
-	if (latitudeArray == NULL) {
+	if (longitudeArray == NULL) {
             if (!(longitudeArray = G_alloc_fmatrix(numRows, n))) 
             {
                 G_fatal_error(_("Out of memory"));