Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java14
1 files changed, 8 insertions, 6 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 55a578e86f..fa24eb9d82 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
@@ -79,12 +79,14 @@ class StyledTextRenderer {
public LineInfo() {
}
public LineInfo(LineInfo info) {
- flags = info.flags;
- background = info.background;
- alignment = info.alignment;
- indent = info.indent;
- justify = info.justify;
- segments = info.segments;
+ if (info != null) {
+ flags = info.flags;
+ background = info.background;
+ alignment = info.alignment;
+ indent = info.indent;
+ justify = info.justify;
+ segments = info.segments;
+ }
}
}

Back to the top