[GRASS-dev] [GRASS GIS] #1859: d.mon is broken

GRASS GIS trac at osgeo.org
Tue Jan 22 13:38:46 PST 2013


#1859: d.mon is broken
------------------------+---------------------------------------------------
 Reporter:  huhabla     |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  critical    |   Milestone:  7.0.0                    
Component:  Display     |     Version:  svn-trunk                
 Keywords:  d.mon, wx0  |    Platform:  Linux                    
      Cpu:  x86-64      |  
------------------------+---------------------------------------------------

Comment(by huhabla):

 Besides the fact that it is not working for me on two different Ubuntu
 12.04 machines, is this part of code bad style:
 gui/wxpython/mapdisp/toolbars.py line 82 - 91
 {{{
         if self.parent.GetLayerManager():
             log = self.parent.GetLayerManager().GetLogWindow()

         if haveNviz:
             choices.append(_('3D view'))
             self.toolId['3d'] = 1
         else:
             from nviz.main import errorMsg
             log.WriteCmdLog(_('3D view mode not available'))
             log.WriteWarning(_('Reason: %s') % str(errorMsg))
 }}}

 What happens in case there is no parent with a layer manager? In this case
 the application crashes! This exception should be handled, for example to
 use a
 different log window or the console log?

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1859#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list