Skip to content

Commit

Permalink
CQ-209 Fixed a bug where Y offset wasn't calculated if after cirqwiza…
Browse files Browse the repository at this point in the history
…rd launch, the first opened panel was 100x75mm
  • Loading branch information
simonsalykov committed Sep 18, 2017
1 parent 3c02f70 commit b871c1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/cirqwizard/fx/panel/PanelController.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ public void refresh()
{
getMainApplication().getContext().setG54X(machineSettings.getReferencePinX().getValue() -
ApplicationConstants.getRegistrationPinsInset());
if (sizeComboBox.getValue() != null)
getMainApplication().getContext().setG54Y(SettingsFactory.getMachineSettings().getReferencePinY().getValue() -
sizeComboBox.getValue().getWcsYOffset());
}
validator = new PanelValidator(panelPane.getPanel(), errorBox, ignoreErrorCheckBox, () ->
{
Expand Down

0 comments on commit b871c1e

Please sign in to comment.