summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/DrawCommandDispatch.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2017-03-21 02:49:55 +0100
committerBjörn Michaelsen <bjoern.michaelsen@canonical.com>2017-03-23 18:53:24 +0000
commitf0a6f3549e7fd6a91037b6edc661740058754579 (patch)
tree1cbd79d7b32eb7881d1925442914164983eba1a5 /chart2/source/controller/main/DrawCommandDispatch.cxx
parent3d53ec9b2d1c4514adf90ea68915f20ce4d5bc81 (diff)
Lets not call 1/2 of everyone we know friend...
...esp. when they tend try to own our private parts. Lets be honest here. Also remove pointless repeated private:s. Change-Id: Idaa7621fbe812ef25f13bba1882a16cca4de9d61 Reviewed-on: https://gerrit.libreoffice.org/35600 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'chart2/source/controller/main/DrawCommandDispatch.cxx')
-rw-r--r--chart2/source/controller/main/DrawCommandDispatch.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/chart2/source/controller/main/DrawCommandDispatch.cxx b/chart2/source/controller/main/DrawCommandDispatch.cxx
index e52994d1aa9a..9519df44556c 100644
--- a/chart2/source/controller/main/DrawCommandDispatch.cxx
+++ b/chart2/source/controller/main/DrawCommandDispatch.cxx
@@ -384,12 +384,7 @@ void DrawCommandDispatch::execute( const OUString& rCommand, const Sequence< bea
{
SdrPageView* pPageView = pDrawViewWrapper->GetSdrPageView();
pDrawViewWrapper->InsertObjectAtView( pObj, *pPageView );
- Reference< drawing::XShape > xShape( pObj->getUnoShape(), uno::UNO_QUERY );
- if ( xShape.is() )
- {
- m_pChartController->m_aSelection.setSelection( xShape );
- m_pChartController->m_aSelection.applySelection( pDrawViewWrapper );
- }
+ m_pChartController->SetAndApplySelection(Reference<drawing::XShape>(pObj->getUnoShape(), uno::UNO_QUERY));
if ( nFeatureId == COMMAND_ID_DRAW_TEXT )
{
m_pChartController->StartTextEdit();