瀏覽代碼

nviz: Don't fail when user cancels surface property raster map choose window

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41205 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 15 年之前
父節點
當前提交
922218ff4b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      visualization/nviz/scripts/attPopup.tcl

+ 1 - 1
visualization/nviz/scripts/attPopup.tcl

@@ -261,7 +261,7 @@ proc ap_get_topofile {} {
     global attPopup_Status attPopup_Type
     global attPopup_Status attPopup_Type
     
     
     set new [create_map_browser .browse_topo_file surf 1]
     set new [create_map_browser .browse_topo_file surf 1]
-    if { $new == "" } then { return }
+    if { $new == "" || $new == -1 } then { return }
     
     
     puts "returned from create_map_browser"
     puts "returned from create_map_browser"
     set attPopup_Type non_constant
     set attPopup_Type non_constant