Opened 12 years ago

Closed 12 years ago

#1817 closed defect (fixed)

Map Swipe

Reported by: hellik Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: wxGUI Version: svn-trunk
Keywords: Cc:
CPU: x86-64 Platform: MSWindows 7

Description

choosing the bottom/right raster, press ok, then following error comes up:

Traceback (most recent call last):
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\wx-2.8
-msw-unicode\wx\_core.py", line 14669, in <lambda>

lambda event: event.callable(*event.args, **event.kw) )
  File "C:\OSGeo4W\apps\grass\grass-7.0.svn\etc\gui\wxpython
\mapswipe\frame.py", line 103, in CallAfterInit

self.OnSelectRasters(event = None)
  File "C:\OSGeo4W\apps\grass\grass-7.0.svn\etc\gui\wxpython
\mapswipe\frame.py", line 303, in OnSelectRasters

res1 = self.SetFirstRaster(name = maps[0])
  File "C:\OSGeo4W\apps\grass\grass-7.0.svn\etc\gui\wxpython
\mapswipe\frame.py", line 324, in SetFirstRaster

self.OnZoomToMap(event = None)
  File "C:\OSGeo4W\apps\grass\grass-7.0.svn\etc\gui\wxpython
\mapswipe\frame.py", line 287, in OnZoomToMap

self.GetFirstWindow().ZoomToMap(layers =
self.Map.GetListOfLayers())
  File "C:\OSGeo4W\apps\grass\grass-7.0.svn\etc\gui\wxpython
\mapswipe\mapwindow.py", line 103, in ZoomToMap

super(SwipeBufferedWindow, self).ZoomToMap(layers,
ignoreNulls, render)
  File "C:\OSGeo4W\apps\grass\grass-7.0.svn\etc\gui\wxpython
\mapdisp\mapwindow.py", line 1583, in ZoomToMap

layers = self.tree.GetSelectedLayer(multi = True,
checkedOnly = False)
AttributeError
:
'NoneType' object has no attribute 'GetSelectedLayer'
System Info                                                                     
GRASS version: 7.0.svn                                                          
GRASS SVN Revision: 54132                                                       
GIS Library Revision: 52468 (2012-07-27)                                        
GDAL/OGR: 1.9.2                                                                 
PROJ.4: 4.8.0                                                                   
GEOS: 3.3.5                                                                     
SQLite: 3.7.10                                                                  
Python: 2.7.2                                                                   
wxPython: 2.8.12.1                                                              
Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)     

Change History (2)

comment:1 by annakrat, 12 years ago

Should be fixed in r54142.

in reply to:  1 comment:2 by hellik, 12 years ago

Resolution: fixed
Status: newclosed

Replying to annakrat:

Should be fixed in r54142.

tested, works fine.

thanks.

Note: See TracTickets for help on using tickets.