aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
index 645a78527..c2f69cf98 100644
--- a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
@@ -469,7 +469,9 @@ public class TextLayoutManager extends LeafNodeLayoutManager {
TraitSetter.addFontTraits(textArea, font);
textArea.addTrait(Trait.COLOR, foText.getColor());
TraitSetter.addTextDecoration(textArea, foText.getTextDecoration());
- TraitSetter.addStructureTreeElement(textArea, foText.getStructureTreeElement());
+ if (!context.treatAsArtifact()) {
+ TraitSetter.addStructureTreeElement(textArea, foText.getStructureTreeElement());
+ }
return textArea;
}