diff --git a/Source/Cli/cli.cpp b/Source/Cli/cli.cpp index 4df44906f..733350bea 100644 --- a/Source/Cli/cli.cpp +++ b/Source/Cli/cli.cpp @@ -5,6 +5,7 @@ #include "Core/FileInformation.h" #include #include +#include Cli::Cli() : indexOfStreamWithKnownFrameCount(0), statsFileBytesWritten(0), statsFileBytesTotal(0), statsFileBytesUploaded(0), statsFileBytesToUpload(0) { @@ -37,6 +38,7 @@ int Cli::exec(QCoreApplication &a) bool forceUploadToSignalServer = false; QString checkUploadFileName; + std::setlocale(LC_NUMERIC, "C"); for(int i = 1; i < a.arguments().length(); ++i) { diff --git a/Source/GUI/Plots.cpp b/Source/GUI/Plots.cpp index a3a9597d1..1b4e9ed7b 100755 --- a/Source/GUI/Plots.cpp +++ b/Source/GUI/Plots.cpp @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -145,7 +144,6 @@ Plots::Plots( QWidget *parent, FileInformation* fileInformation ) : m_dataTypeIndex( Plots::AxisSeconds ), m_commentsPlot(nullptr) { - setlocale(LC_NUMERIC, "C"); QGridLayout* layout = new QGridLayout( this ); layout->setSpacing( 1 ); layout->setContentsMargins( 0, 0, 0, 0 ); diff --git a/Source/GUI/mainwindow.cpp b/Source/GUI/mainwindow.cpp index 8f18a0b77..b2d7a5055 100755 --- a/Source/GUI/mainwindow.cpp +++ b/Source/GUI/mainwindow.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include @@ -82,6 +83,8 @@ MainWindow::MainWindow(QWidget *parent) : DragDrop_Image=NULL; DragDrop_Text=NULL; + std::setlocale(LC_NUMERIC, "C"); + m_plotsChooser = new PlotsChooser(); connect(m_plotsChooser, &PlotsChooser::orderChanged, [&]() { QList> filtersSelectors = m_plotsChooser->getFilterSelectorsOrder();