Skip to content
Snippets Groups Projects
Commit 5960fb3b authored by Fons Rademakers's avatar Fons Rademakers
Browse files

don't depend on cint/dictionary being initialized when the static

TTFX11Init is created as this fails on Mac with Xcode 4 for roota (static
ROOT executable).


git-svn-id: http://root.cern.ch/svn/root/trunk@38552 27541ba8-7e3a-0410-8455-c3a389f83636
parent 19062432
Branches
Tags
No related merge requests found
......@@ -154,7 +154,7 @@ void TGX11TTF::Activate()
{
// Static method setting TGX11TTF as the acting gVirtualX.
if (gVirtualX && !strcmp(gVirtualX->IsA()->GetName(), "TGX11")) {
if (gVirtualX && dynamic_cast<TGX11*>(gVirtualX)) {
TGX11 *oldg = (TGX11 *) gVirtualX;
gVirtualX = new TGX11TTF(*oldg);
delete oldg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment