Fix: Misaligned undo icons across all field types (#11431)

Align undo icons
This commit is contained in:
Kiss Lorand
2025-12-22 17:47:15 +02:00
committed by GitHub
parent b30d7fb0fa
commit 8e9daad2e8

View File

@@ -992,7 +992,7 @@ wxPoint OG_CustomCtrl::CtrlLine::draw_act_bmps(wxDC& dc, wxPoint pos, const wxBi
pos.y += lround((height - get_bitmap_size(bmp_undo).GetHeight()) / 2); pos.y += lround((height - get_bitmap_size(bmp_undo).GetHeight()) / 2);
} }
#endif #endif
wxCoord h_pos = pos.x; wxCoord h_pos = pos.x - ctrl->m_h_gap; // Orca: adjust position to the left
wxCoord v_pos = pos.y; wxCoord v_pos = pos.y;
#ifndef DISABLE_UNDO_SYS #ifndef DISABLE_UNDO_SYS