Probably makes more sense to return DONTKNOW if the element is DONTKNOW ...

... and not the namespace token without any element token ORed in.

DONTKNOW is what the two callers look for.

Does not break any unit test. (Does not fix the bug I am investigating
either, though.)

Change-Id: Ibd75ee06797d7b62476d4bf2302338b2bb3266d4
This commit is contained in:
Tor Lillqvist
2017-01-24 15:12:42 +02:00
parent d8aa450396
commit c0ee5231c9

View File

@@ -120,7 +120,9 @@ namespace DOM
{
nNamespaceToken = aIter->mnToken;
sal_Int32 nNameToken = getToken( rContext, pName );
if( nNameToken != FastToken::DONTKNOW )
if( nNameToken == FastToken::DONTKNOW )
nNamespaceToken = FastToken::DONTKNOW;
else
nNamespaceToken |= nNameToken;
}