diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-03 20:18:01 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-03 20:18:01 +0300 |
commit | e19a3a8767cb54218fdf528279a804299213e801 (patch) | |
tree | 4441b5d5d452678bf4463e3419a09e6416186d6c /server/TracyTimelineItemPlot.cpp | |
parent | 450fbf5ea0485ffe6b8d9d1437b031ab670254db (diff) |
Implement check for empty plot.
Diffstat (limited to 'server/TracyTimelineItemPlot.cpp')
-rw-r--r-- | server/TracyTimelineItemPlot.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/TracyTimelineItemPlot.cpp b/server/TracyTimelineItemPlot.cpp index 83c8920f..6d306779 100644 --- a/server/TracyTimelineItemPlot.cpp +++ b/server/TracyTimelineItemPlot.cpp @@ -14,6 +14,11 @@ TimelineItemPlot::TimelineItemPlot( View& view, Worker& worker, PlotData* plot ) { } +bool TimelineItemPlot::IsEmpty() const +{ + return m_plot->data.empty(); +} + const char* TimelineItemPlot::HeaderLabel() const { static char tmp[1024]; |