From 8a33f4869560fee72da171008406c6bdb5a7b192 2017-06-15 09:06:28 From: mperrinel Date: 2017-06-15 09:06:28 Subject: [PATCH] Merge branch 'develop' of https://perrinel@hephaistos.lpp.polytechnique.fr/rhodecode/GIT_REPOSITORIES/LPP/Users/mperrinel/SCIQLOP-Initialisation into develop --- diff --git a/plugins/mockplugin/src/CosinusProvider.cpp b/plugins/mockplugin/src/CosinusProvider.cpp index e538ccb..8240f30 100644 --- a/plugins/mockplugin/src/CosinusProvider.cpp +++ b/plugins/mockplugin/src/CosinusProvider.cpp @@ -21,8 +21,8 @@ CosinusProvider::retrieveData(const DataProviderParameters ¶meters) const auto scalarSeries = std::make_unique(end - start, QStringLiteral("t"), QStringLiteral("")); - for (auto time = start; time < end; ++time) { - auto dataIndex = time - start; + auto dataIndex = 0; + for (auto time = start; time < end; ++time, ++dataIndex) { scalarSeries->setData(dataIndex, time, std::cos(time)); }