summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/view1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/view1.cxx')
-rw-r--r--sw/source/uibase/uiview/view1.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view1.cxx b/sw/source/uibase/uiview/view1.cxx
index c5c70feaf26c..6c6ab090f989 100644
--- a/sw/source/uibase/uiview/view1.cxx
+++ b/sw/source/uibase/uiview/view1.cxx
@@ -176,8 +176,7 @@ void SwView::ExecFormatPaintbrush(SfxRequest const & rReq)
const SfxItemSet *pArgs = rReq.GetArgs();
if( pArgs && pArgs->Count() >= 1 )
{
- bPersistentCopy = static_cast<const SfxBoolItem &>(pArgs->Get(
- SID_FORMATPAINTBRUSH)).GetValue();
+ bPersistentCopy = pArgs->Get(SID_FORMATPAINTBRUSH).GetValue();
}
m_pFormatClipboard->Copy( GetWrtShell(), GetPool(), bPersistentCopy );