Skip to content

Commit

Permalink
GUI: fixed wrong ability text format for stack objects in popup image…
Browse files Browse the repository at this point in the history
… mode (closes #4057)
  • Loading branch information
JayDi85 committed Nov 26, 2023
1 parent 6e3fe7e commit 0470ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mage.Client/src/main/java/mage/client/cards/BigCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import mage.constants.EnlargeMode;
import org.jdesktop.swingx.JXPanel;
import mage.client.util.TransformedImageCache;
import org.mage.card.arcane.ManaSymbols;
import org.mage.card.arcane.UI;

/**
Expand Down Expand Up @@ -96,7 +97,7 @@ public void setCard(UUID cardId, EnlargeMode enlargeMode, Image image, List<Stri
displayedText.append("<p style='margin: 2px'>").append(textLine).append("</p>");
}
}
this.text.setText(displayedText.toString());
this.text.setText(ManaSymbols.replaceSymbolsWithHTML(displayedText.toString(), ManaSymbols.Type.DIALOG));
repaint();
}
}
Expand Down

0 comments on commit 0470ae9

Please sign in to comment.