diff options
-rw-r--r-- | BinaryDisplay.cpp | 4 | ||||
-rw-r--r-- | MainWindow.cpp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/BinaryDisplay.cpp b/BinaryDisplay.cpp index 8526511..f58491c 100644 --- a/BinaryDisplay.cpp +++ b/BinaryDisplay.cpp @@ -43,8 +43,8 @@ BinaryDisplay::remove_input(int id) input2 = nullptr; if (input3 && input3->get_id() == id) input3 = nullptr; - if (input4 && input5->get_id() == id) - input5 = nullptr; + if (input4 && input4->get_id() == id) + input4 = nullptr; if (input5 && input5->get_id() == id) input5 = nullptr; if (input6 && input6->get_id() == id) diff --git a/MainWindow.cpp b/MainWindow.cpp index 18f9a61..06c1d4a 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -868,6 +868,11 @@ MainWindow::remove_object(Object &object) } break; } + case Object::BINARYDISPLAY: + { + class BinaryDisplay &bsdp = (class BinaryDisplay&)object; + break; + } case Object::NONE: default: printf("remove_object implement other objects\n"); |