Explorar o código

wxGUI: don't crash when missing vdigit

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35633 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=16) %!d(string=hai) anos
pai
achega
20d9da0b1c
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      gui/wxpython/gui_modules/vdigit.py

+ 3 - 3
gui/wxpython/gui_modules/vdigit.py

@@ -22,7 +22,7 @@ Classes:
  - VDigitDuplicatesDialog
  - VDigitVBuildDialog
 
-(C) 2007-2008 by the GRASS Development Team
+(C) 2007-2009 by the GRASS Development Team
 
 This program is free software under the GNU General Public
 License (>=v2). Read the file COPYING that comes with GRASS
@@ -53,16 +53,16 @@ try:
     sys.path.append(digitPath)
     import grass7_wxvdigit as wxvdigit
     GV_LINES = wxvdigit.GV_LINES
+    PseudoDC = wxvdigit.PseudoDC
     digitErr = ''
 except ImportError, err:
     GV_LINES = None
+    PseudoDC = None
     digitErr = err
     print >> sys.stderr, "%sWARNING: Digitization tool is disabled (%s). " \
           "Detailed information in README file." % \
           (os.linesep, err)
 
-PseudoDC = wxvdigit.PseudoDC
-
 class AbstractDigit:
     """
     Abstract digitization class