diff options
-rw-r--r-- | sw/source/ui/frmdlg/wrap.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/frmdlg/wrap.cxx b/sw/source/ui/frmdlg/wrap.cxx index cee2b50cc1c9..d5d84c64560c 100644 --- a/sw/source/ui/frmdlg/wrap.cxx +++ b/sw/source/ui/frmdlg/wrap.cxx @@ -31,6 +31,7 @@ #include <svx/swframevalidation.hxx> #include "cmdid.h" +#include <docsh.hxx> #include "uitool.hxx" #include "wrtsh.hxx" #include "swmodule.hxx" @@ -169,7 +170,7 @@ void SwWrapTabPage::Reset(const SfxItemSet *rSet) } } - nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current()); + nHtmlMode = ::GetHtmlMode(static_cast<const SwDocShell*>(SfxObjectShell::Current())); bHtmlMode = (nHtmlMode & HTMLMODE_ON) != 0; FieldUnit aMetric = ::GetDfltMetric(bHtmlMode); |