Skip to content
Permalink
Browse files

Fix overflow by assigning double max to float, invalid min

  • Loading branch information
nyalldawson committed Jan 27, 2020
1 parent e5593b9 commit 2b15e255eaf63f1d45b8e963fca7f9f9e4bf8d40
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/3d/qgsfeature3dhandler_p.h
@@ -122,8 +122,8 @@ class QgsFeature3DHandler
void updateZRangeFromPositions( const QVector<QVector3D> &positions );

protected:
float mZMin = std::numeric_limits<double>::max();
float mZMax = std::numeric_limits<double>::min();
float mZMin = std::numeric_limits<float>::max();
float mZMax = std::numeric_limits<float>::lowest();
};


0 comments on commit 2b15e25

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