aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/logicblock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/coreview/logicblock.cpp')
-rw-r--r--qtmips_gui/coreview/logicblock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/logicblock.cpp b/qtmips_gui/coreview/logicblock.cpp
index 1ee9a18..2e74a77 100644
--- a/qtmips_gui/coreview/logicblock.cpp
+++ b/qtmips_gui/coreview/logicblock.cpp
@@ -78,7 +78,7 @@ const Connector *LogicBlock::new_connector(qreal x, qreal y) {
y = sign(y);
// Note: we are using here that 0 and M_PI is same angle but different orientation (but we ignore orientation for now)
- Connector *c = new Connector(fabs(x) > fabs(y) ? 0 : M_PI_2);
+ Connector *c = new Connector(fabs(x) > fabs(y) ? Connector::AX_X : Connector::AX_Y);
connectors.append({
.con = c,
.x = x,