Skip to content

Commit a67b429

Browse files
authored
[geom] Fix outside safety in TGeoGtra
Use outside safety in TGeoGtra::DistFromOutside. The code used inside safety for outside points and could return wrong safety values.
1 parent 71d11a9 commit a67b429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

geom/geom/src/TGeoArb8.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ TGeoGtra::DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact
20972097
{
20982098
if (iact < 3 && safe) {
20992099
// compute safe distance
2100-
*safe = Safety(point, kTRUE);
2100+
*safe = Safety(point, kFALSE);
21012101
if (iact == 0)
21022102
return TGeoShape::Big();
21032103
if (iact == 1 && step < *safe)

0 commit comments

Comments
 (0)