Skip to content

Commit 07afb42

Browse files
committed
Missing condition
1 parent 71050bb commit 07afb42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

FileFormat.Words/OpenXML.Words.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,11 @@ private WP.JustificationValues MapAlignmentToJustification(ParagraphAlignment al
215215
case ParagraphAlignment.Center:
216216
return WP.JustificationValues.Center;
217217
case ParagraphAlignment.Right:
218-
return WP.JustificationValues.Right;
219-
default:
218+
return WP.JustificationValues.Right;
219+
case ParagraphAlignment.Justify:
220220
return WP.JustificationValues.Both;
221+
default:
222+
return WP.JustificationValues.Left;
221223
}
222224
}
223225

0 commit comments

Comments
 (0)