From 93bf01f185c8c9c2922199687568e7808c0bc452 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 2 May 2024 23:17:36 -0500 Subject: [PATCH] wip --- selfdrive/ui/qt/onroad.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 037ed8d..008da58 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -895,7 +895,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) { i += (i + 2) < max_len ? 1 : 0; // Skipping a point to optimize rendering } - } catch () { + } catch (const exception& e) { // Default shading if for some reason the above code fails bg = QLinearGradient(0, height(), 0, 0); bg.setColorAt(0.0, QColor(center_lane_color.red(), center_lane_color.green(), center_lane_color.blue(), static_cast(other_alpha * 255 * 0.4)));