From 5fd84dbacce643ef439883483c8517891fc0c97b Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Thu, 17 Mar 2022 23:34:20 +0100 Subject: [PATCH] qa/pns: draw single segments too in the log viewer frame --- qa/tools/pns/pns_log_viewer.cpp | 7 +++++++ qa/tools/pns/pns_log_viewer_frame.cpp | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/qa/tools/pns/pns_log_viewer.cpp b/qa/tools/pns/pns_log_viewer.cpp index 77e5673416..4d0c0502c2 100644 --- a/qa/tools/pns/pns_log_viewer.cpp +++ b/qa/tools/pns/pns_log_viewer.cpp @@ -245,6 +245,13 @@ void PNS_LOG_VIEWER_FRAME::drawLoggedItems( int iter ) break; } + case SH_SEGMENT: + { + auto seg = static_cast( sh ); + m_overlay->Line( seg->GetSeg().A, seg->GetSeg().B ); + + break; + } case SH_RECT: { auto rect = static_cast( sh ); diff --git a/qa/tools/pns/pns_log_viewer_frame.cpp b/qa/tools/pns/pns_log_viewer_frame.cpp index 6a8572b74c..0ecb6127d8 100644 --- a/qa/tools/pns/pns_log_viewer_frame.cpp +++ b/qa/tools/pns/pns_log_viewer_frame.cpp @@ -244,6 +244,13 @@ void PNS_LOG_VIEWER_FRAME::drawLoggedItems( int iter ) break; } + case SH_SEGMENT: + { + auto seg = static_cast( sh ); + m_overlay->Line( seg->GetSeg().A, seg->GetSeg().B ); + + break; + } case SH_RECT: { auto rect = static_cast( sh );