Graduatednd IOP: avoid rounding issues for rotation after moving whole line. Fixes #10241

(cherry picked from commit 92914ef17be6ba3875b7f0260cf02fd2754cdc91)