summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/basesh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/basesh.cxx')
-rw-r--r--sw/source/uibase/shells/basesh.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index c2cfbea258cf..4bbccb4b2eaa 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -2101,11 +2101,11 @@ void SwBaseShell::GetTxtFontCtrlState( SfxItemSet& rSet )
vcl::Font aFont;
if(pI && pI->ISA(SvxFontItem))
{
- aFont.SetName( ((const SvxFontItem*)pI)->GetFamilyName());
- aFont.SetStyleName(((const SvxFontItem*)pI)->GetStyleName());
- aFont.SetFamily(((const SvxFontItem*)pI)->GetFamily());
- aFont.SetPitch(((const SvxFontItem*)pI)->GetPitch());
- aFont.SetCharSet(((const SvxFontItem*)pI)->GetCharSet());
+ aFont.SetName( static_cast<const SvxFontItem*>(pI)->GetFamilyName());
+ aFont.SetStyleName(static_cast<const SvxFontItem*>(pI)->GetStyleName());
+ aFont.SetFamily(static_cast<const SvxFontItem*>(pI)->GetFamily());
+ aFont.SetPitch(static_cast<const SvxFontItem*>(pI)->GetPitch());
+ aFont.SetCharSet(static_cast<const SvxFontItem*>(pI)->GetCharSet());
}
bool bVertical = rSh.IsInVerticalText();