Bug fixed: Nothing selected after removing a symbol. Potential error throw on "Apply"
This commit is contained in:
@@ -1035,8 +1035,11 @@ namespace McBitFont {
|
|||||||
var sel = miniList.SelectedItems[0].ImageKey;
|
var sel = miniList.SelectedItems[0].ImageKey;
|
||||||
int code = Convert.ToInt32(miniList.SelectedItems[0].ImageKey);
|
int code = Convert.ToInt32(miniList.SelectedItems[0].ImageKey);
|
||||||
FrameMiniature ff = frames.Find(x => x.code == code);
|
FrameMiniature ff = frames.Find(x => x.code == code);
|
||||||
|
bool isLast = frames.Last().Equals(ff);
|
||||||
frames.Remove(ff);
|
frames.Remove(ff);
|
||||||
miniList.SelectedItems[0].Remove();
|
miniList.SelectedItems[0].Remove();
|
||||||
|
|
||||||
|
miniList.Items[isLast ? miniList.Items.Count - 1 : 0].Selected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void prependSymbolToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void prependSymbolToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
2
TODO.txt
2
TODO.txt
@@ -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
|
V A button to Copy from Test font dialog to then paste into another frame
|
||||||
|
|
||||||
Bugs:
|
Bugs:
|
||||||
- Nothing selected after removing a symbol. Potential error throw on "Apply"
|
V Nothing selected after removing a symbol. Potential error throw on "Apply"
|
Reference in New Issue
Block a user