- Instead of doing the full layout, just redraw the match frame from removeCardPanel (prevents a crash when mass-removing cards with enchantments on them while also getting rid of lingering visual artifacts OTB).

This commit is contained in:
Agetian
2017-01-15 07:50:45 +00:00
parent 62ff68fde6
commit 6c0a38154d

View File

@@ -296,9 +296,9 @@ public abstract class CardPanelContainer extends SkinnedPanel {
fromPanel.dispose(); fromPanel.dispose();
getCardPanels().remove(fromPanel); getCardPanels().remove(fromPanel);
remove(fromPanel); remove(fromPanel);
FView.SINGLETON_INSTANCE.getFrame().repaint(); // necessary to get rid of lingering visual artifacts (e.g. unneeded targeting arrows)
invalidate(); invalidate();
repaint(); repaint();
FView.SINGLETON_INSTANCE.getFrame().repaint(); // necessary to get rid of lingering visual artifacts (e.g. unneeded targeting arrows)
} }
public final void setCardPanels(final List<CardPanel> cardPanels) { public final void setCardPanels(final List<CardPanel> cardPanels) {