Skip to content

Commit

Permalink
fix: also set readingDirection for newly created elems
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnth committed Jan 11, 2024
1 parent af4cdfa commit 7808bbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/de/uniwue/web/io/PageXMLWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ private static void addNewElementToLayout(de.uniwue.web.model.Region regionSegme
if(type.getSubtype() != null) {
textRegion.setTextType(TypeConverter.subTypeToString(type.getSubtype()));
}
if (regionSegment.getReadingDirection() != null) {
textRegion.setReadingDirection(regionSegment.getReadingDirection());
}
// Add TextLines if existing
if(regionSegment.getTextlines() != null) {
final List<de.uniwue.web.model.TextLine> textlines = new ArrayList<>(regionSegment.getTextlines().values());
Expand Down

0 comments on commit 7808bbd

Please sign in to comment.