Merge pull request #596 from xournalpp/macos_compile

fixing building errors in macOS
presentation
morrolinux 7 years ago committed by GitHub
commit 1def143d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/control/tools/EditSelection.cpp
  2. 2
      src/util/Stacktrace.cpp

@ -656,7 +656,7 @@ void EditSelection::snapRotation()
for (unsigned int i = 0; i < sizeof(ROTATION_LOCK) / sizeof(ROTATION_LOCK[0]); i++ )
{
if (std::abs(this->rotation - ROTATION_LOCK[i]) < epsilon)
if (abs(this->rotation - ROTATION_LOCK[i]) < epsilon)
{
this->rotation = ROTATION_LOCK[i];
}

@ -5,7 +5,7 @@
#else
#include <execinfo.h>
#include <unistd.h>
#include <linux/limits.h>
#include <limits.h>
#endif
#include <iostream>

Loading…
Cancel
Save