commit | 4a0a76576c03c1ce998d1c9025a2b16565f033d2 | [log] [tgz] |
---|---|---|
author | Felipe Heidrich <fheidric> | Thu Aug 03 18:38:12 2006 +0000 |
committer | Felipe Heidrich <fheidric> | Thu Aug 03 18:38:12 2006 +0000 |
tree | f0daaf72ec439b581aa879b089822dde0a8cdb71 | |
parent | 87a273517d8662be0d55be7871a1f3a52f123a80 [diff] |
Bug 152718 - StyledText printing feature doesn't work
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 55a578e..fa24eb9d 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 @@ 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; + } } }