Merge pull request #475 from xournalpp/selection_rotation_with-toggle

rotation snap only if the toggle is enabled
presentation
morrolinux 7 years ago committed by GitHub
commit 269edf5077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/control/tools/EditSelection.cpp

@ -644,6 +644,12 @@ CursorSelectionType EditSelection::getSelectionTypeForPos(double x, double y, do
void EditSelection::snapRotation()
{
bool snapping = this->view->getXournal()->getControl()->isRotationSnapping();
if (!snapping)
{
return;
}
double epsilon = 0.1;
const double ROTATION_LOCK[8] = {0, M_PI / 2.0, M_PI, M_PI / 4.0, 3.0 * M_PI / 4.0,
- M_PI / 4.0, - 3.0 * M_PI / 4.0, - M_PI / 2.0};

Loading…
Cancel
Save