summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-01-27 23:39:36 +0100
committerMichael Stahl <mstahl@redhat.com>2012-01-27 23:49:18 +0100
commitb61abf6b1374d2de98f0936b4c1e2cc32294922a (patch)
treea78576cc768dd929602014405bf660dde8f344ea /svx
parent4512de034a0eabc2e66fd9516581bba94aa20a08 (diff)
SvxColumnItem: fix buggy STL conversion:
In the copy ctor, the vector must not be initialized with the constructor that takes an integer, because that causes it to have that many elements, which together with the loop that copies all source elements leads to a vector with twice as many elements. This causes a crash in writer when dragging the row separator line in a table, because that code doesn't expect the item to have more elements than the table has rows. (regression from d319387526870f34c49b3ef337b1b0d55767f3fe)
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/rulritem.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/svx/source/dialog/rulritem.cxx b/svx/source/dialog/rulritem.cxx
index 1be621b9eb3c..dc9af2682eca 100644
--- a/svx/source/dialog/rulritem.cxx
+++ b/svx/source/dialog/rulritem.cxx
@@ -505,7 +505,6 @@ SvxColumnItem::SvxColumnItem( sal_uInt16 nActCol, sal_uInt16 left, sal_uInt16 ri
SvxColumnItem::SvxColumnItem( const SvxColumnItem& rCopy ) :
SfxPoolItem( rCopy ),
- aColumns ( (sal_uInt8)rCopy.Count() ),
nLeft ( rCopy.nLeft ),
nRight ( rCopy.nRight ),
nActColumn( rCopy.nActColumn ),