From ab36c433fa8e574740ed3928b8b472aa4f44265e Mon Sep 17 00:00:00 2001 From: wtyqm Date: Thu, 27 Jun 2013 09:41:38 +0800 Subject: [PATCH] fix sub ccb node resource root path bug When load sub ccb type node , create a new ccbreader from parent ccbreader. Should copy ccbRootPath from parent, otherwise, load resource will fail if sub ccb node resource use special path --- extensions/CCBReader/CCBReader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/CCBReader/CCBReader.cpp b/extensions/CCBReader/CCBReader.cpp index 73a6903654..3ce31b5010 100644 --- a/extensions/CCBReader/CCBReader.cpp +++ b/extensions/CCBReader/CCBReader.cpp @@ -108,6 +108,9 @@ CCBReader::CCBReader(CCBReader * pCCBReader) this->mOwnerOutletNames = pCCBReader->mOwnerOutletNames; this->mOwnerOutletNodes = pCCBReader->mOwnerOutletNodes; this->mOwnerOutletNodes->retain(); + + this->mCCBRootPath = pCCBReader->getCCBRootPath(); + init(); }