diff options
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/cpdfsdk_pageview.cpp | 14 | ||||
-rw-r--r-- | fpdfsdk/cpdfsdk_pageview.h | 3 |
2 files changed, 2 insertions, 15 deletions
diff --git a/fpdfsdk/cpdfsdk_pageview.cpp b/fpdfsdk/cpdfsdk_pageview.cpp index bf4d8c6979..beba7b68f4 100644 --- a/fpdfsdk/cpdfsdk_pageview.cpp +++ b/fpdfsdk/cpdfsdk_pageview.cpp @@ -511,20 +511,6 @@ void CPDFSDK_PageView::LoadFXAnnots() { SetLock(FALSE); } -void CPDFSDK_PageView::ClearFXAnnots() { - SetLock(TRUE); - if (m_pSDKDoc && GetFocusAnnot()) { - CPDFSDK_Annot::ObservedPtr pNull; - m_pSDKDoc->SetFocusAnnot(&pNull); - } - m_pCaptureWidget.Reset(); - for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) - m_pSDKDoc->GetEnv()->GetAnnotHandlerMgr()->ReleaseAnnot(pAnnot); - m_fxAnnotArray.clear(); - m_pAnnotList.reset(); - SetLock(FALSE); -} - void CPDFSDK_PageView::UpdateRects(const std::vector<CFX_FloatRect>& rects) { CPDFSDK_Environment* pEnv = m_pSDKDoc->GetEnv(); for (const auto& rc : rects) diff --git a/fpdfsdk/cpdfsdk_pageview.h b/fpdfsdk/cpdfsdk_pageview.h index ba6001b5e9..fe40300c23 100644 --- a/fpdfsdk/cpdfsdk_pageview.h +++ b/fpdfsdk/cpdfsdk_pageview.h @@ -92,9 +92,10 @@ class CPDFSDK_PageView final : public CPDF_Page::View { int GetPageIndex() const; void LoadFXAnnots(); - void ClearFXAnnots(); + void SetValid(FX_BOOL bValid) { m_bValid = bValid; } FX_BOOL IsValid() { return m_bValid; } + void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } FX_BOOL IsLocked() { return m_bLocked; } #ifndef PDF_ENABLE_XFA |