bad memory allocation size fixed
This commit is contained in:
parent
4592ebfd3d
commit
0d49820cad
@ -90,7 +90,8 @@ void QskStrokeNode::updateNode(
|
||||
stroker.process( dashedVectorPath, effectivePen, {}, {} );
|
||||
}
|
||||
|
||||
d->geometry.allocate( stroker.vertexCount() );
|
||||
// 2 vertices for each point
|
||||
d->geometry.allocate( stroker.vertexCount() / 2 );
|
||||
|
||||
memcpy( d->geometry.vertexData(), stroker.vertices(),
|
||||
stroker.vertexCount() * sizeof( float ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user