qa/pns: draw single segments too in the log viewer frame

This commit is contained in:
Tomasz Wlostowski 2022-03-17 23:34:20 +01:00
parent 2a0accd184
commit 5fd84dbacc
2 changed files with 14 additions and 0 deletions

View File

@ -245,6 +245,13 @@ void PNS_LOG_VIEWER_FRAME::drawLoggedItems( int iter )
break;
}
case SH_SEGMENT:
{
auto seg = static_cast<SHAPE_SEGMENT*>( sh );
m_overlay->Line( seg->GetSeg().A, seg->GetSeg().B );
break;
}
case SH_RECT:
{
auto rect = static_cast<SHAPE_RECT*>( sh );

View File

@ -244,6 +244,13 @@ void PNS_LOG_VIEWER_FRAME::drawLoggedItems( int iter )
break;
}
case SH_SEGMENT:
{
auto seg = static_cast<SHAPE_SEGMENT*>( sh );
m_overlay->Line( seg->GetSeg().A, seg->GetSeg().B );
break;
}
case SH_RECT:
{
auto rect = static_cast<SHAPE_RECT*>( sh );