From b5c05e3403b390215c3b8449634b8e23ae5cdf9e Mon Sep 17 00:00:00 2001 From: sleet01 Date: Sat, 1 Jun 2024 19:31:16 -0700 Subject: [PATCH] Replace old MechView instantiation that is breaking MekHQ nightlies --- MekHQ/src/mekhq/gui/dialog/ChooseRefitDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MekHQ/src/mekhq/gui/dialog/ChooseRefitDialog.java b/MekHQ/src/mekhq/gui/dialog/ChooseRefitDialog.java index e2c3de0c84..0481f90960 100644 --- a/MekHQ/src/mekhq/gui/dialog/ChooseRefitDialog.java +++ b/MekHQ/src/mekhq/gui/dialog/ChooseRefitDialog.java @@ -140,7 +140,7 @@ private void initComponents() { txtOldUnit.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder(resourceMap.getString("txtOldUnit.title")), BorderFactory.createEmptyBorder(5,5,5,5))); - MechView mv = new MechView(unit.getEntity(), false, true, true, true); + MechView mv = new MechView(unit.getEntity(), false, true, true, ViewFormatting.HTML); txtOldUnit.setText("
" + mv.getMechReadout() + "
"); scrOldUnit = new JScrollPane(txtOldUnit); scrOldUnit.setMinimumSize(new Dimension(300, 400));