Index: core/src/fpdfdoc/doc_metadata.cpp |
diff --git a/core/src/fpdfdoc/doc_metadata.cpp b/core/src/fpdfdoc/doc_metadata.cpp |
index 211bc25329a8c9c4287bcf5daa6d81f4d70b0dc6..aeeb1d1f6089e408ff88d50f59814664cf26915f 100644 |
--- a/core/src/fpdfdoc/doc_metadata.cpp |
+++ b/core/src/fpdfdoc/doc_metadata.cpp |
@@ -112,7 +112,8 @@ int32_t CPDF_Metadata::GetString(const CFX_ByteStringC& bsItem, CFX_WideString & |
} |
wsStr = pElmnt->GetContent(0); |
return wsStr.GetLength(); |
- } else if (bsItem == FX_BSTRC("Author")) { |
+ } |
+ if (bsItem == FX_BSTRC("Author")) { |
CXML_Element *pElmnt = pTag->GetElement(NULL, bsTag); |
if (!pElmnt) { |
continue; |
@@ -127,14 +128,13 @@ int32_t CPDF_Metadata::GetString(const CFX_ByteStringC& bsItem, CFX_WideString & |
} |
wsStr = pElmnt->GetContent(0); |
return wsStr.GetLength(); |
- } else { |
- CXML_Element *pElmnt = pTag->GetElement(NULL, bsTag); |
- if (!pElmnt) { |
- continue; |
- } |
- wsStr = pElmnt->GetContent(0); |
- return wsStr.GetLength(); |
} |
+ CXML_Element *pElmnt = pTag->GetElement(NULL, bsTag); |
+ if (!pElmnt) { |
+ continue; |
+ } |
+ wsStr = pElmnt->GetContent(0); |
+ return wsStr.GetLength(); |
} |
return -1; |
} |