Index: xfa/fwl/core/cfwl_picturebox.cpp |
diff --git a/xfa/fwl/core/cfwl_picturebox.cpp b/xfa/fwl/core/cfwl_picturebox.cpp |
index 3c95033aa0d0527de8550194bdac510f0aff9692..e8324fe502870083554bce4af4b73c5d633429ef 100644 |
--- a/xfa/fwl/core/cfwl_picturebox.cpp |
+++ b/xfa/fwl/core/cfwl_picturebox.cpp |
@@ -23,14 +23,13 @@ FWL_Type CFWL_PictureBox::GetClassID() const { |
return FWL_Type::PictureBox; |
} |
-void CFWL_PictureBox::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) { |
- if (!bAutoSize) { |
- rect = m_pProperties->m_rtWidget; |
- return; |
- } |
+CFX_RectF CFWL_PictureBox::GetWidgetRect(bool bAutoSize) { |
+ if (!bAutoSize) |
+ return m_pProperties->m_rtWidget; |
- rect.Set(0, 0, 0, 0); |
+ CFX_RectF rect; |
InflateWidgetRect(rect); |
+ return rect; |
} |
void CFWL_PictureBox::Update() { |