fix splitting for very narrow view ports

Signed-off-by: Florian Thienel <florian@thienel.org>
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/InlineNodeReference.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/InlineNodeReference.java
index f408813..e42d992 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/InlineNodeReference.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/boxes/InlineNodeReference.java
@@ -422,10 +422,10 @@
 		}
 
 		final int offsetOfFirstChildInTail = findStartOffset(tail.getComponent());
-		final int splitPosition;
+		int splitPosition;
 		if (offsetOfFirstChildInTail == -1) {
 			splitPosition = endPosition.getOffset();
-		} else if (offsetOfFirstChildInTail == oldOffsetOfFirstChild && width == 0) {
+		} else if (offsetOfFirstChildInTail == oldOffsetOfFirstChild && (width == 0 || offsetOfFirstChildInTail > endPosition.getOffset())) {
 			splitPosition = startPosition.getOffset();
 		} else {
 			splitPosition = offsetOfFirstChildInTail;