Opened 15 years ago

Closed 15 years ago

#756 closed defect (fixed)

Dragging instead of just clicking for profile transect and measurement zooms window

Reported by: cmbarton Owned by: grass-dev@…
Priority: normal Milestone: 6.4.0
Component: wxGUI Version: unspecified
Keywords: profile measure mousedrag Cc: martin
CPU: All Platform: Unspecified

Description

If you drag with the mouse to create a line for a profile transect or measurement line, instead of just clicking the nodes, it can zoom the display.

Change History (5)

comment:1 by cmbarton, 15 years ago

Cc: martin added
Resolution: fixed
Status: newclosed

Fixed in develbranch_6 r39258. Please test in other platforms. If it works OK, it should be backported to 6.4 RB.

Michael

comment:2 by neteler, 15 years ago

Resolution: fixed
Status: closedreopened

Please keep it open if it should be backported.

comment:3 by cmbarton, 15 years ago

This was backported to 6.4 and fixed. BUT it is broken again in 6.5 (and I assume 7). It is related to the problem I reported in #796.

Michael

comment:4 by cmbarton, 15 years ago

Here the error that is raised: * * Traceback (most recent call last):

File "/Users/cmbarton/grass_dev/grass6_src/dist.i386

-apple- darwin9.8.0/etc/wxpython/gui_modules/mapdisp_window.py", line 1057, in MouseActions

self.OnDragging(event)

File "/Users/cmbarton/grass_dev/grass6_src/dist.i386

-apple- darwin9.8.0/etc/wxpython/gui_modules/mapdisp_window.py", line 1147, in OnDragging

self.MouseDraw(pdc=self.pdcTmp)

File "/Users/cmbarton/grass_dev/grass6_src/dist.i386

-apple- darwin9.8.0/etc/wxpython/gui_modules/mapdisp_window.py", line 960, in MouseDraw

self.Draw(pdc, drawid=self.lineid, pdctype='line', coords=mousecoords)

File "/Users/cmbarton/grass_dev/grass6_src/dist.i386

-apple- darwin9.8.0/etc/wxpython/gui_modules/mapdisp_window.py", line 349, in Draw

wx.Point(coords[2], coords[3]))

File "usr/local/lib/wxPython-

unicode-2.8.10.1/lib/python2.5/site-packages/wx-2.8-mac- unicode/wx/_gdi.py", line 7209, in DrawLine

return _gdi_.PseudoDC_DrawLine(*args, kwargs) TypeError : PseudoDC_DrawLine() takes exactly 5 arguments (3 given)

comment:5 by cmbarton, 15 years ago

Resolution: fixed
Status: reopenedclosed

Fixed for me and no one else has reported problems.

Note: See TracTickets for help on using tickets.