1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Plot can't be empty.

This commit is contained in:
Bartosz Taudul 2017-10-13 15:36:16 +02:00
parent 591fbdf75a
commit 4ed905ca88

View File

@ -2102,7 +2102,7 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover )
for( auto& v : m_plots )
{
if( v->data.empty() ) continue;
assert( !v->data.empty() );
draw->AddText( wpos + ImVec2( ty, offset ), 0xFF44DDDD, GetString( v->name ) );
draw->AddLine( wpos + ImVec2( 0, offset + ty - 1 ), wpos + ImVec2( w, offset + ty - 1 ), 0x8844DDDD );