Skip to content
Snippets Groups Projects
Commit 465785fc authored by Olivier Couet's avatar Olivier Couet
Browse files

Create a named canvas instead of an unnamed one to avoid crash with the macro...

Create a named canvas instead of an unnamed one to avoid crash with the macro tutorials/gl/gviz3d.C (cocoa backend)
parent 8af8dc06
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment