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

Tomas Zigo noreply at github.com
Sun Nov 22 02:28:57 PST 2020


  Branch: refs/heads/releasebranch_7_8
  Home:   https://github.com/OSGeo/grass
  Commit: a57c2dadeec0c87d44d4187b3a90a0313bf24bfb
      https://github.com/OSGeo/grass/commit/a57c2dadeec0c87d44d4187b3a90a0313bf24bfb
  Author: Tomas Zigo <50632337+tmszi at users.noreply.github.com>
  Date:   2020-11-22 (Sun, 22 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