From e90ced84491d9f8f4a1e1bc8f2152c617ea5bb33 Mon Sep 17 00:00:00 2001 From: eFini Date: Thu, 10 Aug 2023 17:15:43 +0800 Subject: [PATCH] map ui: Fixed ETA text alignment issue in CJK (#29311) fixed ETA text alignment issue in CJK old-commit-hash: 8d7e909b539ee5e8411ccb7e3375a74dc6c86c2d --- selfdrive/ui/qt/maps/map_eta.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/maps/map_eta.cc b/selfdrive/ui/qt/maps/map_eta.cc index 4262258cfb..13e11e5597 100644 --- a/selfdrive/ui/qt/maps/map_eta.cc +++ b/selfdrive/ui/qt/maps/map_eta.cc @@ -47,7 +47,7 @@ void MapETA::updateETA(float s, float s_typical, float d) { auto distance = std::array{QString::number(num, 'f', num < 100 ? 1 : 0), uiState()->scene.is_metric ? tr("km") : tr("mi")}; - eta_doc.setHtml(QString(R"( + eta_doc.setHtml(QString(R"(
%1%2
)") .arg(eta[0], eta[1], color, remaining[0], remaining[1], distance[0], distance[1]));
%1%2 %4%5 %6%7