Skip to content

Commit

Permalink
Progressing #168
Browse files Browse the repository at this point in the history
  • Loading branch information
Alastair Carey committed Dec 17, 2024
1 parent 512dab1 commit 8a92dae
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions src/pdf/document/page/object/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,15 @@ pub(crate) mod internal {
f as c_double,
);

if let (Some(document_handle), Some(page_handle)) =
(self.get_document_handle(), self.get_page_handle())
{
PdfPageIndexCache::set_page_requires_content_regeneration(
document_handle,
page_handle,
);
}
// if let (Some(document_handle), Some(page_handle)) =
// (self.get_document_handle(), self.get_page_handle())
// {
// PdfPageIndexCache::set_page_requires_content_regeneration(
// document_handle,
// page_handle,
// );
// }

Ok(())
}

Expand Down Expand Up @@ -310,14 +311,14 @@ pub(crate) mod internal {
self.bindings()
.FPDFPageObj_SetMatrix(self.get_object_handle(), &matrix.as_pdfium()),
) {
if let (Some(document_handle), Some(page_handle)) =
(self.get_document_handle(), self.get_page_handle())
{
PdfPageIndexCache::set_page_requires_content_regeneration(
document_handle,
page_handle,
);
}
// if let (Some(document_handle), Some(page_handle)) =
// (self.get_document_handle(), self.get_page_handle())
// {
// PdfPageIndexCache::set_page_requires_content_regeneration(
// document_handle,
// page_handle,
// );
// }

Ok(())
} else {
Expand Down

0 comments on commit 8a92dae

Please sign in to comment.