Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Okular
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andi Sardina Ramos
Okular
Commits
c313465c
Commit
c313465c
authored
Jun 13, 2005
by
Enrico Ros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applying patch_083
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425038
parent
5e8dc499
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
core/document.cpp
core/document.cpp
+4
-4
No files found.
core/document.cpp
View file @
c313465c
...
...
@@ -907,10 +907,6 @@ void KPDFDocument::processLink( const KPDFLink * link )
const
KPDFLinkGoto
*
go
=
static_cast
<
const
KPDFLinkGoto
*
>
(
link
);
d
->
nextDocumentViewport
=
go
->
destViewport
();
// skip links that point to nowhere (broken ones)
if
(
d
->
nextDocumentViewport
.
pageNumber
==
-
1
)
return
;
// Explanation of why d->nextDocumentViewport is needed:
// all openRelativeFile does is launch a signal telling we
// want to open another URL, the problem is that when the file is
...
...
@@ -927,6 +923,10 @@ void KPDFDocument::processLink( const KPDFLink * link )
}
else
{
// skip local links that point to nowhere (broken ones)
if
(
d
->
nextDocumentViewport
.
pageNumber
==
-
1
)
return
;
setViewport
(
d
->
nextDocumentViewport
,
-
1
,
true
);
d
->
nextDocumentViewport
=
DocumentViewport
();
}
...
...
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