diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-03 19:04:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-04 08:53:37 +0200 |
commit | 53df91adab37a65d87a44aa724b28128f32e9de5 (patch) | |
tree | 1d7b31ee1eeeb9691ccb732f0cb0e06aad4ae5b6 /chart2 | |
parent | tdf#123341 XLSX: fix vertical alignment in comments (diff) | |
download | core-53df91adab37a65d87a44aa724b28128f32e9de5.tar.gz core-53df91adab37a65d87a44aa724b28128f32e9de5.zip |
loplugin:singlevalfields
Change-Id: Ic74b400f0b929b4c57ad70d0b0936983a3d46360
Reviewed-on: https://gerrit.libreoffice.org/80154
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/DataBrowser.cxx | 12 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/DataBrowser.hxx | 1 |
2 files changed, 1 insertions, 12 deletions
diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx index 621baab382e9..e05cdeb8174d 100644 --- a/chart2/source/controller/dialogs/DataBrowser.cxx +++ b/chart2/source/controller/dialogs/DataBrowser.cxx @@ -494,7 +494,6 @@ DataBrowser::DataBrowser(const css::uno::Reference<css::awt::XWindow> &rParent, WB_BORDER | WB_TABSTOP, BrowserStdFlags ), m_nSeekRow( 0 ), m_bIsReadOnly( false ), - m_bLiveUpdate( true ), m_bDataValid( true ), m_aNumberEditField( VclPtr<FormattedField>::Create( & EditBrowseBox::GetDataWindow(), WB_NOBORDER ) ), m_aTextEditField( VclPtr<Edit>::Create( & EditBrowseBox::GetDataWindow(), WB_NOBORDER ) ), @@ -852,16 +851,7 @@ void DataBrowser::SetDataFromModel( const Reference< chart2::XChartDocument > & xChartDoc, const Reference< uno::XComponentContext > & xContext ) { - if( m_bLiveUpdate ) - { - m_xChartDoc.set( xChartDoc ); - } - else - { - Reference< util::XCloneable > xCloneable( xChartDoc, uno::UNO_QUERY ); - if( xCloneable.is()) - m_xChartDoc.set( xCloneable->createClone(), uno::UNO_QUERY ); - } + m_xChartDoc.set( xChartDoc ); m_apDataBrowserModel.reset( new DataBrowserModel( m_xChartDoc, xContext )); m_spNumberFormatterWrapper.reset( diff --git a/chart2/source/controller/dialogs/DataBrowser.hxx b/chart2/source/controller/dialogs/DataBrowser.hxx index db41c117f688..d3575d2e03e3 100644 --- a/chart2/source/controller/dialogs/DataBrowser.hxx +++ b/chart2/source/controller/dialogs/DataBrowser.hxx @@ -158,7 +158,6 @@ private: /// the row that is currently painted long m_nSeekRow; bool m_bIsReadOnly; - bool m_bLiveUpdate; bool m_bDataValid; VclPtr<FormattedField> m_aNumberEditField; |