diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-07-13 20:08:17 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-07-13 20:08:17 +0000 |
| commit | 2b62f943d56c8ff6c46ad49f1bfa4114eb61ddaa (patch) | |
| tree | 7bca8b2ee55a2237a734fd8bc2d95699cd760a65 /src/dom/xpathparser.cpp | |
| parent | include libpng with pkg-config check for include path (fixes #1519300) (diff) | |
| download | inkscape-2b62f943d56c8ff6c46ad49f1bfa4114eb61ddaa.tar.gz inkscape-2b62f943d56c8ff6c46ad49f1bfa4114eb61ddaa.zip | |
fixed parsing of axes
(bzr r1404)
Diffstat (limited to 'src/dom/xpathparser.cpp')
| -rw-r--r-- | src/dom/xpathparser.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dom/xpathparser.cpp b/src/dom/xpathparser.cpp index cb06a0fb2..abbbb0900 100644 --- a/src/dom/xpathparser.cpp +++ b/src/dom/xpathparser.cpp @@ -860,30 +860,43 @@ int XPathParser::getAxisSpecifier(int p0, int depth) { case ANCESTOR_OR_SELF: tokAdd(Token::TOK_AXIS_ANCESTOR_OR_SELF); + break; case ANCESTOR: tokAdd(Token::TOK_AXIS_ANCESTOR); + break; case ATTRIBUTE: tokAdd(Token::TOK_AXIS_ATTRIBUTE); + break; case CHILD: tokAdd(Token::TOK_AXIS_CHILD); + break; case DESCENDANT_OR_SELF: tokAdd(Token::TOK_AXIS_DESCENDANT_OR_SELF); + break; case DESCENDANT: tokAdd(Token::TOK_AXIS_DESCENDANT); + break; case FOLLOWING_SIBLING: tokAdd(Token::TOK_AXIS_FOLLOWING_SIBLING); + break; case FOLLOWING: tokAdd(Token::TOK_AXIS_FOLLOWING); + break; case NAMESPACE: tokAdd(Token::TOK_AXIS_NAMESPACE); + break; case PARENT: tokAdd(Token::TOK_AXIS_PARENT); + break; case PRECEDING_SIBLING: tokAdd(Token::TOK_AXIS_PRECEDING_SIBLING); + break; case PRECEDING: tokAdd(Token::TOK_AXIS_PRECEDING); + break; case SELF: tokAdd(Token::TOK_AXIS_SELF); + break; default: { error("unknown axis type %d", axisType); |
