Fix layout.

This commit is contained in:
Bartosz Taudul
2020-03-16 23:04:50 +01:00
parent 8e1333468d
commit c06ea4a3e8

View File

@@ -2509,7 +2509,17 @@ void View::DrawZones()
if( showFull )
{
const auto sampleOffset = offset;
if( m_vd.drawSamples && !v->samples.empty() ) offset += round( ostep * 0.5f );
if( m_vd.drawSamples && !v->samples.empty() )
{
if( m_vd.drawContextSwitches )
{
offset += round( ostep * 0.5f );
}
else
{
offset += round( ostep * 0.75f );
}
}
const auto ctxOffset = offset;
if( m_vd.drawContextSwitches ) offset += round( ostep * 0.75f );