}
spinnerDialog.setUnit(WorkspaceSettings.getInstance().getUnit());
spinnerDialog.setPosition(guideLine.getPosition());
spinnerDialog.pack();
SwingUtil.centerDialogInParent(spinnerDialog);
if (spinnerDialog.showDialog())
{
final GuideLine newGuideLine = new GuideLine(spinnerDialog.getPosition(), guideLine.isActive());
linealModel.updateGuideLine(index, newGuideLine);