Skip to content

Commit

Permalink
[skip-ci] protection in TGeoXTru example
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Couet committed Feb 5, 2025
1 parent e5c2a91 commit 2ac8c2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions geom/geom/src/TGeoXtru.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ Begin_Macro
gGeoManager->CloseGeometry();
gGeoManager->SetNsegments(80);
top->Draw();
TView *view = gPad->GetView();
if (view) view->ShowAxis();
if (gPad) {
TView *view = gPad->GetView();
if (view) view->ShowAxis();
}
}
End_Macro
Expand Down

0 comments on commit 2ac8c2d

Please sign in to comment.