git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198385
13f79535-47bb-0310-9956-
ffa450edef68
* @param backProps the background properties
*/
public static void addBackground(Area area, CommonBorderPaddingBackground backProps) {
+ if (!backProps.hasBackground()) {
+ return;
+ }
Trait.Background back = new Trait.Background();
back.setColor(backProps.backgroundColor);
}
}
- if (back.getColor() != null || back.getFopImage() != null) {
- area.addTrait(Trait.BACKGROUND, back);
- }
+ area.addTrait(Trait.BACKGROUND, back);
}
/**