summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase/wrtsh/wrtsh1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/wrtsh/wrtsh1.cxx')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index d3575cbc1547..bfe720085d27 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1378,15 +1378,12 @@ SelectionType SwWrtShell::GetSelectionType() const
else if( GetDrawView()->GetContext() == SdrViewContext::Media )
nCnt |= SelectionType::Media;
- if (svx::checkForSelectedCustomShapes(
- const_cast<SdrView *>(GetDrawView()),
- true /* bOnlyExtruded */ ))
+ if (svx::checkForSelectedCustomShapes( GetDrawView(), true /* bOnlyExtruded */ ))
{
nCnt |= SelectionType::ExtrudedCustomShape;
}
sal_uInt32 nCheckStatus = 0;
- if (svx::checkForSelectedFontWork(
- const_cast<SdrView *>(GetDrawView()), nCheckStatus ))
+ if (svx::checkForSelectedFontWork( GetDrawView(), nCheckStatus ))
{
nCnt |= SelectionType::FontWork;
}