]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed SWT font resource leak from MultiLineInputDialog. 55/255/3
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 5 Jan 2017 13:50:55 +0000 (15:50 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 5 Jan 2017 21:26:08 +0000 (23:26 +0200)
refs #6941

Change-Id: I5b884a30c98a495aeb0d74e1c57b7540c3352003

bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/dialogs/MultiLineInputDialog.java

index 4ed8abfdc45697a91c24b42ef0d410a6cc4fcb98..5537b436bf0d671bac56a88da16f7f6c107e7fce 100644 (file)
@@ -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));