sw/source/ui/uiview/formatclipboard.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
New commits: commit 7689f91451ad07e2c324cbe142d3d002610d8c33 Author: Maxime de Roucy <mdero...@linagora.com> Date: Fri Nov 23 14:40:27 2012 +0100 fix bug 53508 In the format paintbrush function : Apply the paragraph automatic attributes to all the nodes in the selection instead of just the last node. Change-Id: I655f00cbf44d3d80c19a7ef623bc1c7cb505ead9 Reviewed-on: https://gerrit.libreoffice.org/1180 Reviewed-by: Norbert Thiebaud <nthieb...@gmail.com> Tested-by: Norbert Thiebaud <nthieb...@gmail.com> diff --git a/sw/source/ui/uiview/formatclipboard.cxx b/sw/source/ui/uiview/formatclipboard.cxx index 8b09cba..15e3cdf 100644 --- a/sw/source/ui/uiview/formatclipboard.cxx +++ b/sw/source/ui/uiview/formatclipboard.cxx @@ -551,7 +551,15 @@ void SwFormatClipboard::Paste( SwWrtShell& rWrtShell, SfxStyleSheetBasePool* pPo // it can't be a multiple selection SwPaM* pCrsr = rWrtShell.GetCrsr(); - // apply the paragraph automatic attributes + // apply the paragraph automatic attributes to all the nodes in the selection + for (SwNodeIndex pNodeIndexIterator = pCrsr->Start()->nNode, + pNodeIndexEnd = pCrsr->End()->nNode; + pNodeIndexIterator != pNodeIndexEnd; + ++pNodeIndexIterator ) + { + pNodeIndexIterator.GetNode().GetCntntNode()->SetAttr( *pTemplateItemSet ); + } + // same as pCrsr->End()->nNode.GetNode().GetCntntNode()->SetAttr pCrsr->GetCntntNode()->SetAttr( *pTemplateItemSet ); // store the attributes in aItemVector in order not to apply them as _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits