Multiply d->yaxisdir() to get angle_degrees with respect to the current orientation of Y-axis.
d->yaxisdir()
angle_degrees
Fixes: #5992