[GRASS-git] [OSGeo/grass] a92f41: wxGUI/g.gui.psmap: fix double click on the map fra...

Tomas Zigo noreply at github.com
Sat Nov 21 19:03:01 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: a92f4115a82ec29053504190fb66eb625c85c984
      https://github.com/OSGeo/grass/commit/a92f4115a82ec29053504190fb66eb625c85c984
  Author: Tomas Zigo <50632337+tmszi at users.noreply.github.com>
  Date:   2020-11-21 (Sat, 21 Nov 2020)

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

  Log Message:
  -----------
  wxGUI/g.gui.psmap: fix double click on the map frame with vector map (#1055)

MapFramePanel class OnMap() event method is called twice if you click
on the added map frame rectangle. Once directly from construct method
and second time as registred select map widget event handler. When
events are triggered, one OnMap() method call get rasterTypeRadio widget
incorrect value (raster type) and than is called g.region command with
wrong raster map parameter (map type is vector).

res = grass.read_command("g.region", flags='gu', raster=map)




More information about the grass-commit mailing list