mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Implement check for empty plot.
This commit is contained in:
parent
450fbf5ea0
commit
e19a3a8767
@ -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];
|
||||
|
@ -13,6 +13,7 @@ public:
|
||||
TimelineItemPlot( View& view, Worker& worker, PlotData* plot );
|
||||
|
||||
void DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) override;
|
||||
bool IsEmpty() const override;
|
||||
|
||||
protected:
|
||||
uint32_t HeaderColor() const override { return 0xFF44DDDD; }
|
||||
|
Loading…
Reference in New Issue
Block a user