Skip to content

Commit

Permalink
Merge pull request #471 from mleotta/dev/fix-zoom-to-landmarks
Browse files Browse the repository at this point in the history
only zoom to landmarks if landmarks have a valid size
  • Loading branch information
mleotta committed May 17, 2021
2 parents 2d06a82 + 637974f commit fa7eda2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/release-notes/release.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
TeleSculptor v1.1.3 Release Notes
=================================

This release provides patches to the TeleSculptor v1.1.2 release to address
issues. TeleSculptor v1.1.3 is a bug fix release with no new functionality.

Fixes since v1.1.2
------------------

TeleSculptor Application

* Fixed a bug in which the "zoom to landmarks" option would make the World
View projections permantly invalid if there were no landmarks to zoom to.
5 changes: 5 additions & 0 deletions gui/WorldView.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,11 @@ void WorldView::resetViewToLandmarks()
vtkBoundingBox bbox;
bbox.AddBounds(d->landmarkActor->GetBounds());

if (!bbox.IsValid())
{
return;
}

double bounds[6];
bbox.GetBounds(bounds);
d->renderer->ResetCamera(bounds);
Expand Down

0 comments on commit fa7eda2

Please sign in to comment.