diff --git a/CMakePresets.json b/CMakePresets.json index cc271d79..45e3d7e6 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -22,7 +22,8 @@ "inherits": "cmake-pedantic", "cacheVariables": { "DRAMSYS_BUILD_TESTS": "ON", - "DRAMSYS_WITH_DRAMPOWER": "ON" + "DRAMSYS_WITH_DRAMPOWER": "ON", + "DRAMSYS_BUILD_TRACE_ANALYZER": "ON" } }, { diff --git a/src/traceAnalyzer/businessObjects/commentmodel.cpp b/src/traceAnalyzer/businessObjects/commentmodel.cpp index 01fa18f8..68a14bb5 100644 --- a/src/traceAnalyzer/businessObjects/commentmodel.cpp +++ b/src/traceAnalyzer/businessObjects/commentmodel.cpp @@ -277,7 +277,7 @@ const std::vector& CommentModel::getComments() const traceTime CommentModel::getTimeFromIndex(const QModelIndex& index) const { - Q_ASSERT(index.row() > 0 && comments.size() > static_cast(index.row())); + Q_ASSERT(index.row() >= 0 && comments.size() > static_cast(index.row())); return comments[index.row()].time; } diff --git a/src/traceAnalyzer/traceanalyzer.cpp b/src/traceAnalyzer/traceanalyzer.cpp index 608a2263..c131b1a9 100644 --- a/src/traceAnalyzer/traceanalyzer.cpp +++ b/src/traceAnalyzer/traceanalyzer.cpp @@ -254,7 +254,7 @@ void TraceAnalyzer::on_actionAbout_triggered() this, QStringLiteral("DRAMSys"), QStringLiteral( - "DRAMSys4.0 is a flexible DRAM subsystem design space exploration " + "DRAMSys5.0 is a flexible DRAM subsystem design space exploration " "framework based on SystemC " "TLM-2.0. It was developed by the Microelectronic Systems "