diff options
author | Felipe Heidrich <fheidric> | 2006-08-03 18:38:12 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2006-08-03 18:38:12 +0000 |
commit | 4a0a76576c03c1ce998d1c9025a2b16565f033d2 (patch) | |
tree | f0daaf72ec439b581aa879b089822dde0a8cdb71 /bundles | |
parent | 87a273517d8662be0d55be7871a1f3a52f123a80 (diff) | |
download | eclipse.platform.swt-4a0a76576c03c1ce998d1c9025a2b16565f033d2.tar.gz eclipse.platform.swt-4a0a76576c03c1ce998d1c9025a2b16565f033d2.tar.xz eclipse.platform.swt-4a0a76576c03c1ce998d1c9025a2b16565f033d2.zip |
Bug 152718 - StyledText printing feature doesn't work
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java | 14 |
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; + } } } |