From f4d228c3e7a66e23d8ba958f804f32f0b823ce18 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 1 Oct 2025 00:32:15 +0200 Subject: Fix the position of the X axis labels. --- src/wx/audio_plot.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index 78294b55b..a2f6ca917 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -228,7 +228,7 @@ AudioPlot::paint () gc->GetTextExtent (str, &str_width, &str_height, &str_descent, &str_leading); int const tx = llrintf (metrics.db_label_width + t.seconds() * pps); - gc->DrawText (str, tx - str_width / 2, metrics.height - metrics.y_origin + db_label_height); + gc->DrawText(str, tx - str_width / 2, metrics.height - metrics.y_pad + 4); v_grid.MoveToPoint (tx, metrics.height - metrics.y_pad + 4); v_grid.AddLineToPoint(tx, metrics.y_pad); -- cgit v1.2.3