7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Fix off-by-one error when dragging to the left.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20307
This commit is contained in:
Jeff Young 2025-03-16 12:16:33 +00:00
parent 533551f014
commit 6708f7b10c

View File

@ -1044,6 +1044,11 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnColMove( wxGridEvent& aEvent )
{
int newPos = m_grid->GetColPos( origPos );
#ifdef __WXMAC__
if( newPos < origPos )
newPos += 1;
#endif
m_dataModel->MoveColumn( origPos, newPos );
// "Unmove" the column since we've moved the column internally