From 577dc25130dbd100ef749c4fbb920993f7affa71 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 29 Aug 2023 22:36:23 +0200 Subject: [PATCH] pstats: Fix erroneous highlight in strip chart before oldest frame --- pandatool/src/pstatserver/pStatStripChart.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandatool/src/pstatserver/pStatStripChart.cxx b/pandatool/src/pstatserver/pStatStripChart.cxx index 82df337bd9..f04d0b3249 100644 --- a/pandatool/src/pstatserver/pStatStripChart.cxx +++ b/pandatool/src/pstatserver/pStatStripChart.cxx @@ -229,6 +229,10 @@ get_collector_under_pixel(int xpoint, int ypoint) { // Now use that time to determine the frame. const PStatThreadData *thread_data = _view.get_thread_data(); + if (time < thread_data->get_oldest_time()) { + return -1; + } + // And now we can determine which collector within the frame, based on the // value height. if (_average_mode) {