Browse Source

Merge pull request #58 from garakmon/master

macOS build fixes
Marcus Huderle 6 years ago
parent
commit
9b44850f28
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      editor.cpp

+ 2
- 1
editor.cpp View File

@@ -3,6 +3,7 @@
3 3
 #include <QCheckBox>
4 4
 #include <QPainter>
5 5
 #include <QMouseEvent>
6
+#include <math.h>
6 7
 
7 8
 bool selectingEvent = false;
8 9
 
@@ -255,7 +256,7 @@ void Editor::setConnectionEditControlsEnabled(bool enabled) {
255 256
     ui->spinBox_ConnectionOffset->setEnabled(enabled);
256 257
 
257 258
     if (!enabled) {
258
-        setConnectionEditControlValues(false);
259
+        setConnectionEditControlValues(0);
259 260
     }
260 261
 }
261 262