fix(PageList): when cloning, explicitly set cols
Otherwise pages may have the wrong width if they were resized down with a fast path that just chanes the size without adjusting capacity at all.pull/4913/head
parent
844f20d01f
commit
5cf7575967
|
|
@ -520,6 +520,7 @@ pub fn clone(
|
|||
assert(node.data.capacity.rows >= chunk.end - chunk.start);
|
||||
defer node.data.assertIntegrity();
|
||||
node.data.size.rows = chunk.end - chunk.start;
|
||||
node.data.size.cols = chunk.node.data.size.cols;
|
||||
try node.data.cloneFrom(
|
||||
&chunk.node.data,
|
||||
chunk.start,
|
||||
|
|
|
|||
Loading…
Reference in New Issue