From 465785fc6d5cc83b8059a244f63f82e8ba840f95 Mon Sep 17 00:00:00 2001 From: Olivier Couet <olivier.couet@gmail.com> Date: Wed, 13 Jun 2018 13:51:57 +0200 Subject: [PATCH] Create a named canvas instead of an unnamed one to avoid crash with the macro tutorials/gl/gviz3d.C (cocoa backend) --- graf3d/gviz3d/src/TStructViewerGUI.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graf3d/gviz3d/src/TStructViewerGUI.cxx b/graf3d/gviz3d/src/TStructViewerGUI.cxx index 440f3b1c1a8..9af36dc80b0 100644 --- a/graf3d/gviz3d/src/TStructViewerGUI.cxx +++ b/graf3d/gviz3d/src/TStructViewerGUI.cxx @@ -208,7 +208,7 @@ TStructViewerGUI::TStructViewerGUI(TStructViewer* parent, TStructNode* nodePtr, gGeoManager->SetTopVolume(fTopVolume); gGeoManager->SetNsegments(40); - fCanvas = new TCanvas("", "", 0, 0); + fCanvas = new TCanvas("c", "c", 0, 0); // drawing after creating canvas to avoid drawing in default canvas fGLViewer = new TGLEmbeddedViewer(this, fCanvas); AddFrame(fGLViewer->GetFrame(), new TGLayoutHints(kLHintsExpandX| kLHintsExpandY, 10,10,10,10)); -- GitLab