diff options
Diffstat (limited to 'xfa/fxfa/cxfa_ffimage.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffimage.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/xfa/fxfa/cxfa_ffimage.cpp b/xfa/fxfa/cxfa_ffimage.cpp index cb4990eb81..cc640cef3b 100644 --- a/xfa/fxfa/cxfa_ffimage.cpp +++ b/xfa/fxfa/cxfa_ffimage.cpp @@ -18,7 +18,7 @@ CXFA_FFImage::CXFA_FFImage(CXFA_Node* pNode) : CXFA_FFWidget(pNode) {} CXFA_FFImage::~CXFA_FFImage() { - CXFA_FFImage::UnloadWidget(); + GetNode()->SetImageImage(nullptr); } bool CXFA_FFImage::IsLoaded() { @@ -29,12 +29,7 @@ bool CXFA_FFImage::LoadWidget() { if (GetNode()->GetImageImage()) return true; - return GetNode()->LoadImageImage(GetDoc()) ? CXFA_FFWidget::LoadWidget() - : false; -} - -void CXFA_FFImage::UnloadWidget() { - GetNode()->SetImageImage(nullptr); + return GetNode()->LoadImageImage(GetDoc()) && CXFA_FFWidget::LoadWidget(); } void CXFA_FFImage::RenderWidget(CXFA_Graphics* pGS, |