diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-15 14:10:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-16 09:17:22 +0100 |
commit | 5a8ea2218a352561a3f494af545d9b978766a513 (patch) | |
tree | 39d49e96342fd94374050cfa56e17e0ec623cae5 /sc | |
parent | 56b96f3cc1f03313afade4f642861efb76d0bb54 (diff) |
ofz#6311 still problems with SdrEdgeObj listening to same obj at start as end
Change-Id: Ibd80b484788779b73943b28a5f36e51ebcacec30
Reviewed-on: https://gerrit.libreoffice.org/49824
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocument.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/condformat/condformatdlgentry.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 6 |
5 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index 09f633545c64..1e6269141a82 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -392,7 +392,7 @@ void ScChildrenShapes::SetDrawBroadcaster() SfxBroadcaster* pDrawBC = rViewData.GetDocument()->GetDrawBroadcaster(); if (pDrawBC) { - StartListening(*pDrawBC, true); + StartListening(*pDrawBC, DuplicateHandling::Prevent); maShapeTreeInfo.SetModelBroadcaster( new ScDrawModelBroadcaster(rViewData.GetDocument()->GetDrawLayer()) ); maShapeTreeInfo.SetSdrView(rViewData.GetScDrawView()); diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index 406d40ed972c..4c1c914cb518 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -689,7 +689,7 @@ void ScShapeChildren::SetDrawBroadcaster() { SfxBroadcaster* pDrawBC = mpViewShell->GetDocument().GetDrawBroadcaster(); if (pDrawBC) - StartListening(*pDrawBC, true); + StartListening(*pDrawBC, DuplicateHandling::Prevent); } } diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index b68e99c1d171..21782c18266e 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -207,7 +207,7 @@ ScConditionFrmtEntry::ScConditionFrmtEntry(vcl::Window* pParent, ScDocument* pDo Init(pDialogParent); - StartListening(*pDoc->GetStyleSheetPool(), true); + StartListening(*pDoc->GetStyleSheetPool(), DuplicateHandling::Prevent); if(pFormatEntry) { @@ -1230,7 +1230,7 @@ ScDateFrmtEntry::ScDateFrmtEntry(vcl::Window* pParent, ScDocument* pDoc, const S Init(); - StartListening(*pDoc->GetStyleSheetPool(), true); + StartListening(*pDoc->GetStyleSheetPool(), DuplicateHandling::Prevent); if(pFormat) { diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index 41b7caa91af7..8fe89c51673b 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -134,8 +134,8 @@ void ScPreviewShell::Construct( vcl::Window* pParent ) SetPool( &SC_MOD()->GetPool() ); SetWindow( pPreview ); - StartListening(*pDocShell,true); - StartListening(*SfxGetpApp(),true); // #i62045# #i62046# application is needed for Calc's own hints + StartListening(*pDocShell, DuplicateHandling::Prevent); + StartListening(*SfxGetpApp(), DuplicateHandling::Prevent); // #i62045# #i62046# application is needed for Calc's own hints SfxBroadcaster* pDrawBC = pDocShell->GetDocument().GetDrawBroadcaster(); if (pDrawBC) StartListening(*pDrawBC); diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 55caac70a18f..fa883fe71572 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -1451,9 +1451,9 @@ void ScTabViewShell::Construct( TriState nForceDesignMode ) pCurFrameLine = new ::editeng::SvxBorderLine(&aColBlack, 20, SvxBorderLineStyle::SOLID); pPivotSource = new ScArea; - StartListening(*GetViewData().GetDocShell(),true); - StartListening(*GetViewFrame(),true); - StartListening(*pSfxApp,true); // #i62045# #i62046# application is needed for Calc's own hints + StartListening(*GetViewData().GetDocShell(), DuplicateHandling::Prevent); + StartListening(*GetViewFrame(), DuplicateHandling::Prevent); + StartListening(*pSfxApp, DuplicateHandling::Prevent); // #i62045# #i62046# application is needed for Calc's own hints SfxViewFrame* pFirst = SfxViewFrame::GetFirst(pDocSh); bool bFirstView = !pFirst |