Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2016-03-20 10:40:58 -0400
committerFlorian Thienel2016-03-20 10:40:58 -0400
commitbdc44461f9e6ecadf6ed6ad570efd80597c504f6 (patch)
treed59f2311c1383492c8f0d54e444939e3aa4d4228
parentd0b32beaa6a450d6529869c68b987a7cd8d28edd (diff)
downloadorg.eclipse.mylyn.docs.vex-bdc44461f9e6ecadf6ed6ad570efd80597c504f6.tar.gz
org.eclipse.mylyn.docs.vex-bdc44461f9e6ecadf6ed6ad570efd80597c504f6.tar.xz
org.eclipse.mylyn.docs.vex-bdc44461f9e6ecadf6ed6ad570efd80597c504f6.zip
fix cursor movement through empty structural boxes
Signed-off-by: Florian Thienel <florian@thienel.org>
-rw-r--r--org.eclipse.vex.core/src/org/eclipse/vex/core/internal/cursor/MoveDown.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/cursor/MoveDown.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/cursor/MoveDown.java
index df90bb0b..b134f0fe 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/cursor/MoveDown.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/cursor/MoveDown.java
@@ -208,7 +208,7 @@ public class MoveDown implements ICursorMove {
final IContentBox childBelow = handleSpecialCaseMovingIntoLastLineOfParagraph(findClosestContentBoxChildBelow(parent, x, y), x, y);
if (childBelow == null) {
- if (containsInlineContent(parent)) {
+ if (containsInlineContent(parent) || parent.isEmpty()) {
return findNextContentBoxBelow(parent, x, y);
}
return parent;

Back to the top