From 95e379c0a0a64b181523c3c8b8a44f9787d6d9fe Mon Sep 17 00:00:00 2001 From: Piotr Wasilewski Date: Thu, 12 Dec 2024 21:19:29 +0100 Subject: [PATCH 1/2] fix: fixed bug with not updating base from selection window --- src/Gui/GuiVariablesEdit.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gui/GuiVariablesEdit.hpp b/src/Gui/GuiVariablesEdit.hpp index ef485156..62adca15 100644 --- a/src/Gui/GuiVariablesEdit.hpp +++ b/src/Gui/GuiVariablesEdit.hpp @@ -234,7 +234,10 @@ class VariableEditWindow std::string base = ""; if (!selectionBase.empty()) + { base = *selectionBase.begin(); + shouldUpdate = true; + } else if (fractional.baseVariable != nullptr) base = fractional.baseVariable->getName(); else From 06d490af2c6d634cee9aaa7646f380639b5f77d2 Mon Sep 17 00:00:00 2001 From: Piotr Wasilewski Date: Sat, 14 Dec 2024 21:06:56 +0100 Subject: [PATCH 2/2] fix: set var values from previous acqusition to zero --- src/DataHandler/ViewerDataHandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DataHandler/ViewerDataHandler.cpp b/src/DataHandler/ViewerDataHandler.cpp index 3867fc84..66ec1ef5 100644 --- a/src/DataHandler/ViewerDataHandler.cpp +++ b/src/DataHandler/ViewerDataHandler.cpp @@ -217,6 +217,8 @@ void ViewerDataHandler::createSampleList() if (!checkIfElementExists(newElement)) sampleList.push_back(newElement); } + + variable->setValue(0.0); } /* mark actively sampled varaibles */