diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-12-13 17:22:47 +0900 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-12-13 17:25:20 +0000 |
commit | 9dba49471f289f68853ee6a5a7301cdc2cdf78a8 (patch) | |
tree | fd8ca583fec74d5c3f4a7a2dcb045c75edc82c61 | |
parent | bfabed025b93611d342a970d927be4c17044a7c6 (diff) |
sd: Update list items only when necessary
Change-Id: I48568cb535ebb4372b2cc361d839efe233dc1d36
Reviewed-on: https://gerrit.libreoffice.org/31942
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r-- | sd/source/ui/func/fuarea.cxx | 26 | ||||
-rw-r--r-- | sd/source/ui/func/fuline.cxx | 30 |
2 files changed, 28 insertions, 28 deletions
diff --git a/sd/source/ui/func/fuarea.cxx b/sd/source/ui/func/fuarea.cxx index 1b83544ac9ca..5dcb9c5f14e5 100644 --- a/sd/source/ui/func/fuarea.cxx +++ b/sd/source/ui/func/fuarea.cxx @@ -67,20 +67,20 @@ void FuArea::DoExecute( SfxRequest& rReq ) if( pDlg && (pDlg->Execute() == RET_OK) ) { mpView->SetAttributes (*(pDlg->GetOutputItemSet ())); - } - // attributes changed, update Listboxes in Objectbars - static const sal_uInt16 SidArray[] = { - SID_ATTR_FILL_STYLE, - SID_ATTR_FILL_COLOR, - SID_ATTR_FILL_GRADIENT, - SID_ATTR_FILL_HATCH, - SID_ATTR_FILL_BITMAP, - SID_ATTR_FILL_TRANSPARENCE, - SID_ATTR_FILL_FLOATTRANSPARENCE, - 0 }; - - mpViewShell->GetViewFrame()->GetBindings().Invalidate( SidArray ); + // attributes changed, update Listboxes in Objectbars + static const sal_uInt16 SidArray[] = { + SID_ATTR_FILL_STYLE, + SID_ATTR_FILL_COLOR, + SID_ATTR_FILL_GRADIENT, + SID_ATTR_FILL_HATCH, + SID_ATTR_FILL_BITMAP, + SID_ATTR_FILL_TRANSPARENCE, + SID_ATTR_FILL_FLOATTRANSPARENCE, + 0 }; + + mpViewShell->GetViewFrame()->GetBindings().Invalidate( SidArray ); + } } rReq.Ignore (); diff --git a/sd/source/ui/func/fuline.cxx b/sd/source/ui/func/fuline.cxx index 16a1200c9747..b7dd6f6bfa80 100644 --- a/sd/source/ui/func/fuline.cxx +++ b/sd/source/ui/func/fuline.cxx @@ -79,22 +79,22 @@ void FuLine::DoExecute( SfxRequest& rReq ) if( pDlg && (pDlg->Execute() == RET_OK) ) { mpView->SetAttributes (*(pDlg->GetOutputItemSet ())); - } - // some attributes are changed, we have to update the listboxes in the objectbars - static const sal_uInt16 SidArray[] = { - SID_ATTR_LINE_STYLE, // ( SID_SVX_START + 169 ) - SID_ATTR_LINE_DASH, // ( SID_SVX_START + 170 ) - SID_ATTR_LINE_WIDTH, // ( SID_SVX_START + 171 ) - SID_ATTR_LINE_COLOR, // ( SID_SVX_START + 172 ) - SID_ATTR_LINE_START, // ( SID_SVX_START + 173 ) - SID_ATTR_LINE_END, // ( SID_SVX_START + 174 ) - SID_ATTR_LINE_TRANSPARENCE, // (SID_SVX_START+1107) - SID_ATTR_LINE_JOINT, // (SID_SVX_START+1110) - SID_ATTR_LINE_CAP, // (SID_SVX_START+1111) - 0 }; - - mpViewShell->GetViewFrame()->GetBindings().Invalidate( SidArray ); + // some attributes are changed, we have to update the listboxes in the objectbars + static const sal_uInt16 SidArray[] = { + SID_ATTR_LINE_STYLE, // ( SID_SVX_START + 169 ) + SID_ATTR_LINE_DASH, // ( SID_SVX_START + 170 ) + SID_ATTR_LINE_WIDTH, // ( SID_SVX_START + 171 ) + SID_ATTR_LINE_COLOR, // ( SID_SVX_START + 172 ) + SID_ATTR_LINE_START, // ( SID_SVX_START + 173 ) + SID_ATTR_LINE_END, // ( SID_SVX_START + 174 ) + SID_ATTR_LINE_TRANSPARENCE, // (SID_SVX_START+1107) + SID_ATTR_LINE_JOINT, // (SID_SVX_START+1110) + SID_ATTR_LINE_CAP, // (SID_SVX_START+1111) + 0 }; + + mpViewShell->GetViewFrame()->GetBindings().Invalidate( SidArray ); + } } rReq.Ignore (); |