summaryrefslogtreecommitdiffstats
path: root/tksao
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-10-18 18:36:52 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-10-18 18:36:52 (GMT)
commit01779e2225fe31245ad94ccd01f95c5c7d805494 (patch)
tree604419116c3aedbb152ecdc500f418059c95fac7 /tksao
parent6e339e7f5405f43e971edae22bd21a6d03b9ade8 (diff)
parentc08c815e3bd6b62cb17ae1eda4fcce81059d316d (diff)
downloadblt-01779e2225fe31245ad94ccd01f95c5c7d805494.zip
blt-01779e2225fe31245ad94ccd01f95c5c7d805494.tar.gz
blt-01779e2225fe31245ad94ccd01f95c5c7d805494.tar.bz2
Merge branch 'master' into devel
Diffstat (limited to 'tksao')
-rw-r--r--tksao/frame/basecommand.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/tksao/frame/basecommand.C b/tksao/frame/basecommand.C
index 50ee797..aca3715 100644
--- a/tksao/frame/basecommand.C
+++ b/tksao/frame/basecommand.C
@@ -2916,7 +2916,8 @@ void Base::sliceCmd(double dd, Coord::CoordSystem sys, Coord::SkyFrame sky)
Vector3d out = oo * Translate3d(.5, .5, .5);
// IMAGE (ranges 1-n)
- setSlice(2,out[2]);
+ // be sure to round properly
+ setSlice(2,int(out[2]+.5));
updateMagnifier();
}