| Index: core/src/fpdfdoc/doc_utils.cpp
|
| diff --git a/core/src/fpdfdoc/doc_utils.cpp b/core/src/fpdfdoc/doc_utils.cpp
|
| index 10ca14697d7ea46c4553ccaba7fe54cd678bffc1..96d2ccf689664dcea2d910c5d39f6a76110c5dc4 100644
|
| --- a/core/src/fpdfdoc/doc_utils.cpp
|
| +++ b/core/src/fpdfdoc/doc_utils.cpp
|
| @@ -655,15 +655,17 @@ CPDF_Font* GetDefaultInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Document* pD
|
| }
|
| CPDF_IconFit::ScaleMethod CPDF_IconFit::GetScaleMethod()
|
| {
|
| - if (m_pDict == NULL) {
|
| + if (!m_pDict) {
|
| return Always;
|
| }
|
| CFX_ByteString csSW = m_pDict->GetString("SW", "A");
|
| if (csSW == "B") {
|
| return Bigger;
|
| - } else if (csSW == "S") {
|
| + }
|
| + if (csSW == "S") {
|
| return Smaller;
|
| - } else if (csSW == "N") {
|
| + }
|
| + if (csSW == "N") {
|
| return Never;
|
| }
|
| return Always;
|
|
|