[GRASS-git] [OSGeo/grass] a61ec8: r.lake: Reject seed coordinates north or west of t...
Aditya Shinde
noreply at github.com
Sat Sep 12 11:16:27 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: a61ec86fd58bdea2a4c8ea9d4762fa06eb6162a5
https://github.com/OSGeo/grass/commit/a61ec86fd58bdea2a4c8ea9d4762fa06eb6162a5
Author: Aditya Shinde <adityashinde1525 at gmail.com>
Date: 2026-09-12 (Sat, 12 Sep 2026)
Changed paths:
M raster/CMakeLists.txt
M raster/r.lake/Makefile
M raster/r.lake/main.c
M raster/r.lake/tests/r_lake_test.py
Log Message:
-----------
r.lake: Reject seed coordinates north or west of the region (#7899)
* r.lake: Reject seed coordinates north or west of the region
The conversion to a cell index truncated towards zero, so a coordinate
less than one cell north or west of the region gave index 0 instead of a
negative value and passed the check below zero. Such a seed was silently
moved to the first row or column instead of being rejected.
* r.lake: Link libm for floor()
Previous commit added a call to floor() but r.lake was not linked
against libm, so the CMake build failed with an undefined reference.
Add the math library to both build systems, as other raster modules do.
---------
Co-authored-by: Claude Sonnet 5 <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list