fix bug that prevented markers to appear on fresh plot (e.g. hw tune before data plot)

This commit is contained in:
Philippe Teuwen
2026-02-23 00:31:21 +01:00
parent a219a3413c
commit a73f945c49
2 changed files with 1 additions and 7 deletions
+1
View File
@@ -130,6 +130,7 @@ extern "C" void InitGraphics(int argc, char **argv, char *script_cmds_file, char
#if QT_VERSION >= 0x050100
qunsetenv("SESSION_MANAGER");
#endif
ClearGraph(false);
main_loop_thread = new WorkerThread(script_cmds_file, script_cmd, stayInCommandLoop);
gui = new ProxGuiQT(argc, argv, main_loop_thread);
}
-7
View File
@@ -1122,13 +1122,6 @@ Plot::Plot(QWidget *parent) : QWidget(parent), g_GraphPixelsPerPoint(1) {
setPalette(palette);
setAutoFillBackground(true);
g_MarkerA.pos = 0;
g_MarkerB.pos = 0;
g_MarkerC.pos = 0;
g_MarkerD.pos = 0;
g_GraphStart = 0;
g_GraphStop = 0;
setWindowTitle(tr("Sliders"));
master = parent;
}