Skip to content

Commit 2bca613

Browse files
committed
Fixed screen space crash.
1 parent 3702065 commit 2bca613

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/WhirlyGlobeLib/src/ScreenSpaceBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,10 @@ void ScreenSpaceBuilder::addScreenObject(const ScreenSpaceObject &ssObj,
367367
{
368368
for (unsigned int ii=0;ii<geoms->size();ii++)
369369
{
370-
Eigen::Matrix3d placeMat = places->at(ii);
371370
ScreenSpaceConvexGeometry geom = geoms->at(ii);
372371
// Apply a matrix to the geometry for a given version of the placement
373372
if (places) {
373+
Eigen::Matrix3d placeMat = places->at(ii);
374374
for (auto &pt: geom.coords) {
375375
Point3d pt2d = placeMat * Point3d(pt.x(),pt.y(),1.0);
376376
pt = Point2d(pt2d.x(),pt2d.y());

0 commit comments

Comments
 (0)