diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-01 00:32:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-10 21:15:37 +0200 |
| commit | f4d228c3e7a66e23d8ba958f804f32f0b823ce18 (patch) | |
| tree | 4f07a7d3ad6feee09f8dcd33ed72ba60ad3a93ee | |
| parent | a4ce78b972e0db3cfeda8f33ac5ccc659fab1d66 (diff) | |
Fix the position of the X axis labels.
| -rw-r--r-- | src/wx/audio_plot.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
