Opened 10 years ago

Last modified 8 years ago

#2191 new defect 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_popup() Cc:
CPU: x86-64 Platform: Linux



there's a Xdriver rendering bug when calling, 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

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

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

Note: See TracTickets for help on using tickets.