summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_form.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/cfwl_form.cpp')
-rw-r--r--xfa/fwl/cfwl_form.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/xfa/fwl/cfwl_form.cpp b/xfa/fwl/cfwl_form.cpp
index a40f74e00c..d0d6ef211c 100644
--- a/xfa/fwl/cfwl_form.cpp
+++ b/xfa/fwl/cfwl_form.cpp
@@ -181,10 +181,9 @@ void CFWL_Form::Layout() {
m_rtRelative = GetRelativeRect();
#ifndef FWL_UseMacSystemBorder
- m_fCXBorder =
- *static_cast<FX_FLOAT*>(GetThemeCapacity(CFWL_WidgetCapacity::CXBorder));
- m_fCYBorder =
- *static_cast<FX_FLOAT*>(GetThemeCapacity(CFWL_WidgetCapacity::CYBorder));
+ IFWL_ThemeProvider* theme = GetAvailableTheme();
+ m_fCXBorder = theme ? theme->GetCXBorderSize() : 0.0f;
+ m_fCYBorder = theme ? theme->GetCYBorderSize() : 0.0f;
#endif
}