Only call fetchDoc if actual document URI is equal to current scope as set using 'id' attribute

This commit is contained in:
Tristan Penman 2017-07-10 12:51:20 +10:00
parent f387804a6c
commit 64abe842b8

View File

@ -433,7 +433,7 @@ private:
return cachedPtr;
}
if (actualDocumentUri) {
if (actualDocumentUri && (!currentScope || *actualDocumentUri != *currentScope)) {
const typename FunctionPtrs<AdapterType>::DocumentType *newDoc = NULL;
// Have we seen this document before?