40 void QgsLayoutNorthArrowHandler::updateMapRotation()
46 double rotation = mRotationMap->mapRotation() + mRotationMap->rotation();
56 QgsPointXY center = mRotationMap->extent().center();
74 rotation += mNorthOffset;
75 const double oldRotation = mArrowRotation;
76 mArrowRotation = ( rotation > 360.0 ) ? rotation - 360.0 : rotation ;
77 if ( mArrowRotation != oldRotation )
85 disconnectMap( mRotationMap );
90 mRotationMap =
nullptr;
91 if ( mArrowRotation != 0 )
120 mNorthOffset = offset;