瀏覽代碼

Merge pull request #58 from garakmon/master

macOS build fixes
Marcus Huderle 6 年之前
父節點
當前提交
9b44850f28
No account linked to committer's email address
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      editor.cpp

+ 2
- 1
editor.cpp 查看文件

@@ -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