summaryrefslogtreecommitdiff
path: root/svx/source/dialog/framelinkarray.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/framelinkarray.cxx')
-rw-r--r--svx/source/dialog/framelinkarray.cxx22
1 files changed, 8 insertions, 14 deletions
diff --git a/svx/source/dialog/framelinkarray.cxx b/svx/source/dialog/framelinkarray.cxx
index 513f3221d6c6..c47375073b61 100644
--- a/svx/source/dialog/framelinkarray.cxx
+++ b/svx/source/dialog/framelinkarray.cxx
@@ -47,7 +47,7 @@ struct Cell
inline bool IsMerged() const { return mbMergeOrig || mbOverlapX || mbOverlapY; }
- void MirrorSelfX( bool bMirrorStyles, bool bSwapDiag );
+ void MirrorSelfX( bool bSwapDiag );
};
typedef std::vector< long > LongVec;
@@ -64,23 +64,17 @@ Cell::Cell() :
{
}
-void Cell::MirrorSelfX( bool bMirrorStyles, bool bSwapDiag )
+void Cell::MirrorSelfX( bool bSwapDiag )
{
std::swap( maLeft, maRight );
std::swap( mnAddLeft, mnAddRight );
- if( bMirrorStyles )
- {
- maLeft.MirrorSelf();
- maRight.MirrorSelf();
- }
+ maLeft.MirrorSelf();
+ maRight.MirrorSelf();
if( bSwapDiag )
{
std::swap( maTLBR, maBLTR );
- if( bMirrorStyles )
- {
- maTLBR.MirrorSelf();
- maBLTR.MirrorSelf();
- }
+ maTLBR.MirrorSelf();
+ maBLTR.MirrorSelf();
}
}
@@ -857,7 +851,7 @@ void Array::SetUseDiagDoubleClipping( bool bSet )
}
// mirroring
-void Array::MirrorSelfX( bool bSwapDiag )
+void Array::MirrorSelfX()
{
CellVec aNewCells;
aNewCells.reserve( GetCellCount() );
@@ -868,7 +862,7 @@ void Array::MirrorSelfX( bool bSwapDiag )
for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol )
{
aNewCells.push_back( CELL( mxImpl->GetMirrorCol( nCol ), nRow ) );
- aNewCells.back().MirrorSelfX( true, bSwapDiag );
+ aNewCells.back().MirrorSelfX( false/*bSwapDiag*/ );
}
}
for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow )