diff options
author | angelozerr | 2018-02-12 10:46:54 +0000 |
---|---|---|
committer | Mickael Istria | 2018-02-12 13:19:56 +0000 |
commit | eaea5fcdc5979e1329a86da5469c8ec6047e970f (patch) | |
tree | e7aaeac660c535e24a599ce6c58719c87b250382 | |
parent | fe40b71bf454aca078e8f0be9f2171b9803901cd (diff) | |
download | eclipse.platform.swt-eaea5fcdc5979e1329a86da5469c8ec6047e970f.tar.gz eclipse.platform.swt-eaea5fcdc5979e1329a86da5469c8ec6047e970f.tar.xz eclipse.platform.swt-eaea5fcdc5979e1329a86da5469c8ec6047e970f.zip |
Bug 531032 - [StyledText] Fix StyledTextRenderer#isVariableHeight
In case of word-wrap, always consider height as variable.
Change-Id: I317b218b39e16369cd912e4bd9e1f90808e1baeb
Signed-off-by: angelozerr <angelo.zerr@gmail.com>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java | 2 |
1 files changed, 1 insertions, 1 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 8e8a39fea3..399f0b8e41 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 @@ -666,7 +666,7 @@ int getLineHeight(int lineIndex) { private boolean isVariableHeight(int lineIndex) { if (styledText.wordWrap || styledText.visualWrap) { // In word wrap mode, the line height must be recomputed with TextLayout - return false; + return true; } boolean variableHeight = false; StyleRange[] styles = getStylesForLine(lineIndex); |