Skip to content

Commit

Permalink
Fixes #328 - Wrapper element around SVG was crashing.
Browse files Browse the repository at this point in the history
If the wrapper contained no other elements or content.
  • Loading branch information
danfickle committed Mar 2, 2019
1 parent 6eb2a4f commit 9953cb1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ public static BlockBox createRootBox(LayoutContext c, Document document) {
}

public static void createChildren(LayoutContext c, BlockBox parent) {

if (parent.shouldBeReplaced()) {
return;
}
if (parent.shouldBeReplaced()) {
parent.setChildrenContentType(BlockBox.CONTENT_INLINE);
return;
}

List<Styleable> children = new ArrayList<>();

Expand Down

0 comments on commit 9953cb1

Please sign in to comment.