Proper tooltip for one condensed lock block.

This commit is contained in:
Bartosz Taudul 2017-11-07 22:14:54 +01:00
parent 4821a58720
commit 0aef1b6d4d

View File

@ -2520,7 +2520,7 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
bool itemHovered = hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( std::max( px0, -10.0 ), offset ), wpos + ImVec2( std::min( pxend, double( w + 10 ) ), offset + ty ) );
if( itemHovered )
{
if( condensed != 0 )
if( condensed > 1 )
{
ImGui::BeginTooltip();
ImGui::Text( "Multiple lock events (%" PRIu64 ")", condensed );