Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Persch
poppler
Commits
09952b05
Commit
09952b05
authored
Nov 14, 2018
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AnnotFileAttachment::initialize: Save a Object::copy()
parent
20e8d51d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
poppler/Annot.cc
poppler/Annot.cc
+6
-8
No files found.
poppler/Annot.cc
View file @
09952b05
...
...
@@ -5853,19 +5853,17 @@ AnnotFileAttachment::AnnotFileAttachment(PDFDoc *docA, Object *dictObject, Objec
AnnotFileAttachment
::~
AnnotFileAttachment
()
=
default
;
void
AnnotFileAttachment
::
initialize
(
PDFDoc
*
docA
,
Dict
*
dict
)
{
Object
obj1
;
obj1
=
dict
->
lookup
(
"FS"
);
if
(
obj1
.
isDict
()
||
obj1
.
isString
())
{
file
=
obj1
.
copy
();
Object
objFS
=
dict
->
lookup
(
"FS"
);
if
(
objFS
.
isDict
()
||
objFS
.
isString
())
{
file
=
std
::
move
(
objFS
);
}
else
{
error
(
errSyntaxError
,
-
1
,
"Bad Annot File Attachment"
);
ok
=
false
;
}
obj1
=
dict
->
lookup
(
"Name"
);
if
(
obj
1
.
isName
())
{
name
=
std
::
make_unique
<
GooString
>
(
obj
1
.
getName
());
Object
objName
=
dict
->
lookup
(
"Name"
);
if
(
obj
Name
.
isName
())
{
name
=
std
::
make_unique
<
GooString
>
(
obj
Name
.
getName
());
}
else
{
name
=
std
::
make_unique
<
GooString
>
(
"PushPin"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment