diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-10-18 18:36:52 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-10-18 18:36:52 (GMT) |
commit | 01779e2225fe31245ad94ccd01f95c5c7d805494 (patch) | |
tree | 604419116c3aedbb152ecdc500f418059c95fac7 /tksao | |
parent | 6e339e7f5405f43e971edae22bd21a6d03b9ade8 (diff) | |
parent | c08c815e3bd6b62cb17ae1eda4fcce81059d316d (diff) | |
download | blt-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.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(); } |