Bug fixed: Nothing selected after removing a symbol. Potential error throw on "Apply"

This commit is contained in:
Anton Mukhin
2025-06-03 11:46:30 +03:00
parent 8ca83b7edc
commit cebbdc63c8
2 changed files with 4 additions and 1 deletions

View File

@@ -1035,8 +1035,11 @@ namespace McBitFont {
var sel = miniList.SelectedItems[0].ImageKey;
int code = Convert.ToInt32(miniList.SelectedItems[0].ImageKey);
FrameMiniature ff = frames.Find(x => x.code == code);
bool isLast = frames.Last().Equals(ff);
frames.Remove(ff);
miniList.SelectedItems[0].Remove();
miniList.Items[isLast ? miniList.Items.Count - 1 : 0].Selected = true;
}
private void prependSymbolToolStripMenuItem_Click(object sender, EventArgs e) {

View File

@@ -8,4 +8,4 @@ V Straight line painting (hold Shift / Ctrl)
V A button to Copy from Test font dialog to then paste into another frame
Bugs:
- Nothing selected after removing a symbol. Potential error throw on "Apply"
V Nothing selected after removing a symbol. Potential error throw on "Apply"