diff options
Diffstat (limited to 'tksao/frame')
-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(); } |