[GRASS-SVN] r30034 - grass/trunk/visualization/nviz/scripts
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 9 12:59:40 EST 2008
Author: cmbarton
Date: 2008-02-09 12:59:40 -0500 (Sat, 09 Feb 2008)
New Revision: 30034
Modified:
grass/trunk/visualization/nviz/scripts/panel_main.tcl
Log:
Fixed bug that crashed NVIZ when switching between view modes.
Modified: grass/trunk/visualization/nviz/scripts/panel_main.tcl
===================================================================
--- grass/trunk/visualization/nviz/scripts/panel_main.tcl 2008-02-09 16:39:10 UTC (rev 30033)
+++ grass/trunk/visualization/nviz/scripts/panel_main.tcl 2008-02-09 17:59:40 UTC (rev 30034)
@@ -501,10 +501,9 @@
set NAME $XY
set NAME2 [winfo parent $NAME]
catch "destroy $XY"
-
- # *** ACS_MODIFY 1.0 - one line
if {$Nv_(FlyThrough)} {Nset_fly_mode -1}
+
set h [lindex [Nget_real_position 1] 2]
set min [lindex [Nget_height] 1]
set max [lindex [Nget_height] 2]
@@ -521,27 +520,16 @@
#draw center position
inform "Set center of view position"
set XY [Nv_mkXYScale $NAME cross XY_POS 125 125 109 109 update_center_position]
-
- #*** ACS_MODIFY 1.0 BEGIN ******************************************************
- if {$Nv_(FlyThrough) == 0} {
- # original line
- pack $XY -side left -before $Nv_(HEIGHT_SLIDER)
- }
- #*** ACS_MODIFY 1.0 END ******************************************************
update_height $h
reset_res
move_position
}
-
-
- #*** ACS_MODIFY 1.0 BEGIN ******************************************************
- if {$Nv_(FlyThrough)} {
+
+ if {$Nv_(FlyThrough) == 0} {
pack_XY
} else {
- # original line
pack $XY -side left -before $Nv_(HEIGHT_SLIDER)
}
- #*** ACS_MODIFY 1.0 END ******************************************************
if {$Nauto_draw == 1} {Ndraw_all}
}
More information about the grass-commit
mailing list