Add comment

This commit is contained in:
Laurenz Stampfl 2024-12-17 17:11:50 +01:00
parent db5c3539b0
commit 1ac74d472d

View File

@ -56,6 +56,8 @@ pub(crate) fn handle_link(
Destination::Position(p) => *p, Destination::Position(p) => *p,
Destination::Location(loc) => { Destination::Location(loc) => {
if let Some(named_dest) = gc.loc_to_named.get(loc) { if let Some(named_dest) = gc.loc_to_named.get(loc) {
// If a named destination has been registered, it's already guaranteed to
// not point to an excluded page.
fc.annotations.push( fc.annotations.push(
LinkAnnotation::new( LinkAnnotation::new(
rect, rect,