summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui/report/propbrw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/ui/report/propbrw.cxx')
-rw-r--r--reportdesign/source/ui/report/propbrw.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx
index a99b87b9d019..3afeb3bb904a 100644
--- a/reportdesign/source/ui/report/propbrw.cxx
+++ b/reportdesign/source/ui/report/propbrw.cxx
@@ -502,24 +502,24 @@ void PropBrw::Update( OSectionView* pNewView )
void PropBrw::Update( const uno::Reference< uno::XInterface>& _xReportComponent)
{
- if ( m_xLastSection != _xReportComponent )
- {
- m_xLastSection = _xReportComponent;
- try
- {
- if ( m_pView )
- {
- EndListening( *(m_pView->GetModel()) );
- m_pView = nullptr;
- }
+ if ( m_xLastSection == _xReportComponent )
+ return;
- uno::Reference< uno::XInterface> xTemp(CreateComponentPair(_xReportComponent,_xReportComponent));
- implSetNewObject( uno::Sequence< uno::Reference< uno::XInterface> >(&xTemp,1) );
- }
- catch ( Exception& )
+ m_xLastSection = _xReportComponent;
+ try
+ {
+ if ( m_pView )
{
- OSL_FAIL( "PropBrw::Update: Exception occurred!" );
+ EndListening( *(m_pView->GetModel()) );
+ m_pView = nullptr;
}
+
+ uno::Reference< uno::XInterface> xTemp(CreateComponentPair(_xReportComponent,_xReportComponent));
+ implSetNewObject( uno::Sequence< uno::Reference< uno::XInterface> >(&xTemp,1) );
+ }
+ catch ( Exception& )
+ {
+ OSL_FAIL( "PropBrw::Update: Exception occurred!" );
}
}