Fixed offset_debug for pi nodes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@144 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
e350e9553c
commit
b50199492b
@ -2699,12 +2699,12 @@ namespace pugi
|
|||||||
|
|
||||||
case node_element:
|
case node_element:
|
||||||
case node_declaration:
|
case node_declaration:
|
||||||
|
case node_pi:
|
||||||
return _root->name_insitu ? static_cast<int>(_root->name - buffer) : -1;
|
return _root->name_insitu ? static_cast<int>(_root->name - buffer) : -1;
|
||||||
|
|
||||||
case node_pcdata:
|
case node_pcdata:
|
||||||
case node_cdata:
|
case node_cdata:
|
||||||
case node_comment:
|
case node_comment:
|
||||||
case node_pi:
|
|
||||||
return _root->value_insitu ? static_cast<int>(_root->value - buffer) : -1;
|
return _root->value_insitu ? static_cast<int>(_root->value - buffer) : -1;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user