[poppler] poppler/FileSpec.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Dec 29 00:27:14 UTC 2018


 poppler/FileSpec.cc |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit de0c0b8324e776f0b851485e0fc9622fc35695b7
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Dec 29 01:25:17 2018 +0100

    FileSpec: Move the fileSpec.dictLookup call inside fileSpec.isDict if
    
    Fixes #704

diff --git a/poppler/FileSpec.cc b/poppler/FileSpec.cc
index 8a8b9e7e..7c12da63 100644
--- a/poppler/FileSpec.cc
+++ b/poppler/FileSpec.cc
@@ -133,11 +133,12 @@ FileSpec::FileSpec(const Object *fileSpecA)
         return;
       }
     }
-  }
 
-  obj1 = fileSpec.dictLookup("Desc");
-  if (obj1.isString())
-    desc = obj1.getString()->copy();
+    obj1 = fileSpec.dictLookup("Desc");
+    if (obj1.isString()) {
+      desc = obj1.getString()->copy();
+    }
+  }
 }
 
 FileSpec::~FileSpec()


More information about the poppler mailing list