Skip to content

Commit

Permalink
Merge pull request #4130 from Sleet01/Fix_MechView_instantiation_for_…
Browse files Browse the repository at this point in the history
…refits

Replace old MechView instantiation that is breaking MekHQ nightlies
  • Loading branch information
Sleet01 authored Jun 2, 2024
2 parents b8ee6b8 + b5c05e3 commit 057f2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/gui/dialog/ChooseRefitDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -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("<div style='font: 12pt monospaced'>" + mv.getMechReadout() + "</div>");
scrOldUnit = new JScrollPane(txtOldUnit);
scrOldUnit.setMinimumSize(new Dimension(300, 400));
Expand Down

0 comments on commit 057f2d7

Please sign in to comment.