diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-10-17 19:24:20 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-10-17 19:24:20 (GMT) |
commit | eae23fb2f5da9c245c7855fcc8665e887f4d07e3 (patch) | |
tree | 0cb6bfa36f572704aa77cbed9236aac189317301 /tksao/frame/basecommand.C | |
parent | 96db54d489f3bc306a6e8067376e9b5c518175d4 (diff) | |
download | blt-eae23fb2f5da9c245c7855fcc8665e887f4d07e3.zip blt-eae23fb2f5da9c245c7855fcc8665e887f4d07e3.tar.gz blt-eae23fb2f5da9c245c7855fcc8665e887f4d07e3.tar.bz2 |
round set slice properly
Diffstat (limited to 'tksao/frame/basecommand.C')
-rw-r--r-- | tksao/frame/basecommand.C | 3 |
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(); } |