From: Tuukka Lehtonen Date: Thu, 5 Jan 2017 13:50:55 +0000 (+0200) Subject: Fixed SWT font resource leak from MultiLineInputDialog. X-Git-Tag: v1.27.0~34 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=e4e587142e4820aae6aa710353f9abcb6f7f0ded;p=simantics%2Fplatform.git Fixed SWT font resource leak from MultiLineInputDialog. refs #6941 Change-Id: I5b884a30c98a495aeb0d74e1c57b7540c3352003 --- diff --git a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/dialogs/MultiLineInputDialog.java b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/dialogs/MultiLineInputDialog.java index 4ed8abfdc..5537b436b 100644 --- a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/dialogs/MultiLineInputDialog.java +++ b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/dialogs/MultiLineInputDialog.java @@ -138,7 +138,6 @@ public class MultiLineInputDialog extends InputDialog { GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH); label.setLayoutData(data); - label.setFont(parent.getFont()); } texts[i] = new Text(composite, SWT.SINGLE | SWT.BORDER); texts[i].setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));