Skip to content

Commit 057f2d7

Browse files
authored
Merge pull request #4130 from Sleet01/Fix_MechView_instantiation_for_refits
Replace old MechView instantiation that is breaking MekHQ nightlies
2 parents b8ee6b8 + b5c05e3 commit 057f2d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MekHQ/src/mekhq/gui/dialog/ChooseRefitDialog.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private void initComponents() {
140140
txtOldUnit.setBorder(BorderFactory.createCompoundBorder(
141141
BorderFactory.createTitledBorder(resourceMap.getString("txtOldUnit.title")),
142142
BorderFactory.createEmptyBorder(5,5,5,5)));
143-
MechView mv = new MechView(unit.getEntity(), false, true, true, true);
143+
MechView mv = new MechView(unit.getEntity(), false, true, true, ViewFormatting.HTML);
144144
txtOldUnit.setText("<div style='font: 12pt monospaced'>" + mv.getMechReadout() + "</div>");
145145
scrOldUnit = new JScrollPane(txtOldUnit);
146146
scrOldUnit.setMinimumSize(new Dimension(300, 400));

0 commit comments

Comments
 (0)