summaryrefslogtreecommitdiff
path: root/sw/source/ui/table/rowht.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/table/rowht.cxx')
-rw-r--r--sw/source/ui/table/rowht.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/table/rowht.cxx b/sw/source/ui/table/rowht.cxx
index 0dddb91636a0..8dbec1ddb59d 100644
--- a/sw/source/ui/table/rowht.cxx
+++ b/sw/source/ui/table/rowht.cxx
@@ -56,8 +56,8 @@ SwTableHeightDlg::SwTableHeightDlg(vcl::Window *pParent, SwWrtShell &rS)
get(m_pHeightEdit, "heightmf");
get(m_pAutoHeightCB, "fit");
- FieldUnit eFieldUnit = SW_MOD()->GetUsrPref( 0 != PTR_CAST( SwWebDocShell,
- rSh.GetView().GetDocShell() ) )->GetMetric();
+ FieldUnit eFieldUnit = SW_MOD()->GetUsrPref( dynamic_cast< const SwWebDocShell*>(
+ rSh.GetView().GetDocShell() ) != nullptr )->GetMetric();
::SetFieldUnit(*m_pHeightEdit, eFieldUnit);
m_pHeightEdit->SetMin(MINLAY, FUNIT_TWIP);