[GRASS-git] [OSGeo/grass] 95807d: lib/display: D_show_conversions() %.1f to %g where...

HamishB noreply at github.com
Mon Sep 2 00:16:28 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 95807d0ae8aeaaa039143f8bd855e4783ff9e4f6
      https://github.com/OSGeo/grass/commit/95807d0ae8aeaaa039143f8bd855e4783ff9e4f6
  Author: HamishB <hamish.webmail at gmail.com>
  Date:   2024-09-02 (Mon, 02 Sep 2024)

  Changed paths:
    M lib/display/cnversions.c

  Log Message:
  -----------
  lib/display: D_show_conversions() %.1f to %g where values likely to be smaller than 0.0 (#4263)

Display pixels or raster region rows,cols are likely be on the order of 500, while projected map units are often in the millions, so pixels/meter factor can end up as a very small number. This patch edits an unused in the production code debug helper function to not round that division into a confusing 0.0, as well as some whitespace tweaks to make it more readable.



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