Kaydet (Commit) b61abf6b authored tarafından Michael Stahl's avatar Michael Stahl

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 d3193875)
üst 4512de03
...@@ -505,7 +505,6 @@ SvxColumnItem::SvxColumnItem( sal_uInt16 nActCol, sal_uInt16 left, sal_uInt16 ri ...@@ -505,7 +505,6 @@ SvxColumnItem::SvxColumnItem( sal_uInt16 nActCol, sal_uInt16 left, sal_uInt16 ri
SvxColumnItem::SvxColumnItem( const SvxColumnItem& rCopy ) : SvxColumnItem::SvxColumnItem( const SvxColumnItem& rCopy ) :
SfxPoolItem( rCopy ), SfxPoolItem( rCopy ),
aColumns ( (sal_uInt8)rCopy.Count() ),
nLeft ( rCopy.nLeft ), nLeft ( rCopy.nLeft ),
nRight ( rCopy.nRight ), nRight ( rCopy.nRight ),
nActColumn( rCopy.nActColumn ), nActColumn( rCopy.nActColumn ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment