Opened 10 years ago

Last modified 8 years ago

#2191 new defect

d.menu R_panel_restore() filling with garbage from the X buffer

Reported by: hamish Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: Display Version: svn-develbranch6
Keywords: d.menu, D_popup() Cc:
CPU: x86-64 Platform: Linux

Description

Hi,

there's a Xdriver rendering bug when calling d.menu, after it is complete it should restore the monitor to how it was before the module started, but there's something wrong in R_panel_restore() in grass6/lib/display/popup.c. Instead of restoring the saved rectangle it restores X-buffer junk.

i.ask and d.barscale use similar R_panel_*() calls and they work fine. Coords in the panel's .tmp/ file looks ok AFAICT. It's pretty simple function usage but I can't seem to see what's wrong.

example for r.li.setup:

d.mon x0
d.erase
d.menu bcolor=aqua tcolor=black << EOF
.T 20
.L 20
Next select area with mouse
          [ Ok ]
EOF

bug is present in at least grass versions 6.4.2-6.5svn.

?

thanks, Hamish

Change History (1)

comment:1 by neteler, 8 years ago

Milestone: 6.4.46.4.6
Note: See TracTickets for help on using tickets.