summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewdlg2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/viewdlg2.cxx')
-rw-r--r--sw/source/uibase/uiview/viewdlg2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewdlg2.cxx b/sw/source/uibase/uiview/viewdlg2.cxx
index e3f328a3b3c3..9de01bf198ba 100644
--- a/sw/source/uibase/uiview/viewdlg2.cxx
+++ b/sw/source/uibase/uiview/viewdlg2.cxx
@@ -117,7 +117,7 @@ void SwView::AutoCaption(const sal_uInt16 nType, const SvGlobalName *pOleId)
bool bWeb = dynamic_cast<SwWebView*>( this ) != nullptr;
if (pModOpt->IsInsWithCaption(bWeb))
{
- const InsCaptionOpt *pOpt = pModOpt->GetCapOption(bWeb, (SwCapObjType)nType, pOleId);
+ const InsCaptionOpt *pOpt = pModOpt->GetCapOption(bWeb, static_cast<SwCapObjType>(nType), pOleId);
if (pOpt && pOpt->UseCaption())
InsertCaption(pOpt);
}