diff options
author | Felipe Heidrich <fheidric> | 2006-04-21 18:27:47 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2006-04-21 18:27:47 +0000 |
commit | 8541553dadf05d49f0a2dbb7c8dd48ef34038820 (patch) | |
tree | fa847c72afc474cedbbb1449eba9be990dd6323d /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java | |
parent | 4ae1c6ebacc851ad7c99e6c5d8a7ba40548a8eab (diff) | |
download | eclipse.platform.swt-8541553dadf05d49f0a2dbb7c8dd48ef34038820.tar.gz eclipse.platform.swt-8541553dadf05d49f0a2dbb7c8dd48ef34038820.tar.xz eclipse.platform.swt-8541553dadf05d49f0a2dbb7c8dd48ef34038820.zip |
Bug 129564
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java index cb8b811870..602eb116b4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java @@ -978,6 +978,9 @@ void setFont(Font font, int tabs) { boldItalicFont.dispose(); boldFont = italicFont = boldItalicFont = null; } + layout.dispose(); + layout = new TextLayout(device); + layout.setFont(regularFont); StringBuffer tabBuffer = new StringBuffer(tabs); for (int i = 0; i < tabs; i++) { tabBuffer.append(' '); |