[Libreoffice-commits] core.git: svx/source
Caolán McNamara
caolanm at redhat.com
Sun May 28 20:18:25 UTC 2017
svx/source/table/tablecontroller.cxx | 9 ---------
1 file changed, 9 deletions(-)
New commits:
commit 5df5e1bbc68f54dd7bc4b46f0a05a7150d84470a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun May 28 21:17:32 2017 +0100
aAttr is now (more obviously) unused
Change-Id: Icf646cbb10921cc8673e22c7028e896c1c4aa036
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index e244ecfc04a7..a9850d598b03 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -2669,17 +2669,8 @@ bool SvxTableController::ApplyFormatPaintBrush( SfxItemSet& rFormatSet, bool bNo
CellPos aStart, aEnd;
getSelectedCells( aStart, aEnd );
- SfxItemSet aAttr(*rFormatSet.GetPool(), rFormatSet.GetRanges());
- aAttr.Put(rFormatSet);
-
const bool bFrame = (rFormatSet.GetItemState( SDRATTR_TABLE_BORDER ) == SfxItemState::SET) || (rFormatSet.GetItemState( SDRATTR_TABLE_BORDER_INNER ) == SfxItemState::SET);
- if( bFrame )
- {
- aAttr.ClearItem( SDRATTR_TABLE_BORDER );
- aAttr.ClearItem( SDRATTR_TABLE_BORDER_INNER );
- }
-
for( sal_Int32 nRow = aStart.mnRow; nRow <= aEnd.mnRow; nRow++ )
{
for( sal_Int32 nCol = aStart.mnCol; nCol <= aEnd.mnCol; nCol++ )
More information about the Libreoffice-commits
mailing list