Index: xfa/src/fwl/src/core/fwl_panelimp.cpp |
diff --git a/xfa/src/fwl/src/core/fwl_panelimp.cpp b/xfa/src/fwl/src/core/fwl_panelimp.cpp |
index 991ce226ab462768435f59f63e8655985e000e89..df2fca9da5a0e0094148e2e7d267f9d18dcb6727 100644 |
--- a/xfa/src/fwl/src/core/fwl_panelimp.cpp |
+++ b/xfa/src/fwl/src/core/fwl_panelimp.cpp |
@@ -59,13 +59,11 @@ FWL_ERR CFWL_PanelImp::Update() { |
if (!pWidgetMgr) |
return FWL_ERR_Indefinite; |
IFWL_Widget* pParent = |
- pWidgetMgr->GetWidget((IFWL_Widget*)this, FWL_WGTRELATION_Parent); |
+ pWidgetMgr->GetWidget(GetInterface(), FWL_WGTRELATION_Parent); |
if (pParent && pParent->GetClassID() == FWL_CLASSHASH_Grid) { |
- IFWL_Grid* pGrid = (IFWL_Grid*)pParent; |
- pGrid->GetWidgetSize((IFWL_Widget*)this, FWL_GRIDSIZE_Width, eWidth); |
- pGrid->GetWidgetSize((IFWL_Widget*)this, FWL_GRIDSIZE_Height, eHeight); |
- } |
- if (eWidth != FWL_GRIDUNIT_Auto || eHeight != FWL_GRIDUNIT_Auto) { |
+ IFWL_Grid* pGrid = static_cast<IFWL_Grid*>(pParent); |
+ pGrid->GetWidgetSize(GetInterface(), FWL_GRIDSIZE_Width, eWidth); |
Tom Sepez
2015/12/08 00:47:06
yow.
|
+ pGrid->GetWidgetSize(GetInterface(), FWL_GRIDSIZE_Height, eHeight); |
} |
m_pContent->SetWidgetRect(rtClient); |
m_pContent->Update(); |