[GRASS-git] [OSGeo/grass] 04a564: gui: Fix possibly unbound variables in psmap.utils...

Edouard Choinière noreply at github.com
Mon Dec 23 05:54:47 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 04a564aa6355edc9d8c734bdbb75cabe81183aaa
      https://github.com/OSGeo/grass/commit/04a564aa6355edc9d8c734bdbb75cabe81183aaa
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-12-23 (Mon, 23 Dec 2024)

  Changed paths:
    M gui/wxpython/psmap/utils.py

  Log Message:
  -----------
  gui: Fix possibly unbound variables in psmap.utils.BBoxAfterRotation (#4873)

Current code didn't handle the case where angle is 0, nor if out of range (more than 360 degrees). For example, calling with an angle of 375.7 will try to compute the width and height on variables not set yet. This handles these two cases, and short-circuits for an angle of 0 degrees.

Angles greater than 360 degrees can be supported by this, but range documented is kept as is.



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