diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2017-03-24 12:34:06 +0100 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2017-03-26 00:01:01 +0000 |
commit | 83c1a3235d8d803872e1d57a292d3cdc48dae928 (patch) | |
tree | 070e80c943a5ec9f41808b13875328de6687be0f /chart2 | |
parent | 26262de4d508891d08a97dc280f00b28afcd8c7b (diff) |
Remove obsolete code
now that the ChartController doesnt own the VCL window anymore.
Change-Id: I2fefa73181a61b2a7828b36e70480b59aa7838f4
Reviewed-on: https://gerrit.libreoffice.org/35640
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 0f879f60259e..3d163b791e1a 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -441,17 +441,10 @@ void SAL_CALL ChartController::attachFrame( pParent = VCLUnoHelper::GetWindow( xContainerWindow ).get(); } - auto pChartWindow(GetChartWindow()); - if(pChartWindow) - { - //@todo delete ... - pChartWindow->clear(); - m_apDropTargetHelper.reset(); - } { // calls to VCL SolarMutexGuard aSolarGuard; - pChartWindow = VclPtr<ChartWindow>::Create(this,pParent,pParent?pParent->GetStyle():0); + auto pChartWindow = VclPtr<ChartWindow>::Create(this,pParent,pParent?pParent->GetStyle():0); pChartWindow->SetBackground();//no Background m_xViewWindow.set( pChartWindow->GetComponentInterface(), uno::UNO_QUERY ); pChartWindow->Show(); |