Skip to content
Permalink
Browse files

Fix use after free in 3d point symbol

  • Loading branch information
github-actions authored and nyalldawson committed Jan 28, 2020
1 parent 388277e commit 7204de27f3305146fbd6f8e32355c365030afc31
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/3d/symbols/qgspoint3dsymbol.cpp
@@ -138,11 +138,8 @@ QString QgsPoint3DSymbol::shapeToString( QgsPoint3DSymbol::Shape shape )

QMatrix4x4 QgsPoint3DSymbol::billboardTransform() const
{

float *md = transform().data();

QMatrix4x4 billboardTransformMatrix;
billboardTransformMatrix.translate( QVector3D( 0, md[13], 0 ) );
billboardTransformMatrix.translate( QVector3D( 0, mTransform.data()[13], 0 ) );

return billboardTransformMatrix;

0 comments on commit 7204de2

Please sign in to comment.
You can’t perform that action at this time.