[GRASS-git] [OSGeo/grass] 684263: d.legend: Fix position of units and background (#1...

Vaclav Petras noreply at github.com
Tue Nov 17 20:30:40 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 6842631ae266fe127dcb98a36750ede33fe0f059
      https://github.com/OSGeo/grass/commit/6842631ae266fe127dcb98a36750ede33fe0f059
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2020-11-17 (Tue, 17 Nov 2020)

  Changed paths:
    M display/d.legend/draw.c

  Log Message:
  -----------
  d.legend: Fix position of units and background (#1075)

Do the same for units from metadata (r.info, r.support units=, aka units_bottom)
as for the title, i.e., use the same computation. Use of the right variables
(not title or (the other) units). Use the same check already used for title
for the units too when drawing the background.
(This is applicable only to the do_smooth if statement branch,
not the non FP, no smoothing branch in the code.)




More information about the grass-commit mailing list