From b61abf6b1374d2de98f0936b4c1e2cc32294922a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 27 Jan 2012 23:39:36 +0100 Subject: 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) --- svx/source/dialog/rulritem.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'svx/source/dialog/rulritem.cxx') 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 ), -- cgit