[GRASS-git] [OSGeo/grass] 468366: d.linegraph: Follow-up fixes for typos, dereferenc...

Edouard Choinière noreply at github.com
Wed Jul 15 01:14:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 46836626508062ccf0ae8a5e0571666eb814cb5c
      https://github.com/OSGeo/grass/commit/46836626508062ccf0ae8a5e0571666eb814cb5c
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

  Changed paths:
    M display/d.linegraph/main.c

  Log Message:
  -----------
  d.linegraph: Follow-up fixes for typos, dereference pointers, and format string precision specifier (#7722)

A couple simple string typos were fixed, plus two other issues.

`tt` and `tb` are pointer parameters (`double *tt`, `double *tb`), so `tt - tb` computes pointer difference (an address offset), not the difference between the pointed-to text box values. The condition should dereference the pointers: `(*tt - *tb) > YTIC_DIST`.

The format string `"%f.0"` is incorrect — the `.0` precision specifier must be inside the format specifier, not after it. The literal `.0` will be appended as plain text to the output. The intended format is `"%.0f"` to format the value as a float with no decimal places.

* Apply suggested fix to display/d.linegraph/main.c from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to display/d.linegraph/main.c from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to display/d.linegraph/main.c from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to display/d.linegraph/main.c from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.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