Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2006-08-03 18:38:12 +0000
committerFelipe Heidrich2006-08-03 18:38:12 +0000
commit4a0a76576c03c1ce998d1c9025a2b16565f033d2 (patch)
treef0daaf72ec439b581aa879b089822dde0a8cdb71
parent87a273517d8662be0d55be7871a1f3a52f123a80 (diff)
downloadeclipse.platform.swt-4a0a76576c03c1ce998d1c9025a2b16565f033d2.tar.gz
eclipse.platform.swt-4a0a76576c03c1ce998d1c9025a2b16565f033d2.tar.xz
eclipse.platform.swt-4a0a76576c03c1ce998d1c9025a2b16565f033d2.zip
Bug 152718 - StyledText printing feature doesn't work
-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