Ignore:
Timestamp:
Oct 24, 2018, 8:04:36 PM (8 months ago)
Author:
tbretz
Message:
This workaround is not needed anymore.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MGMenu.cc

    r6824 r19291  
    3030#include "MGMenu.h"
    3131
    32 
     32#if ROOT_VERSION_CODE < ROOT_VERSION(6,00,00)
    3333MGMenuEntry::MGMenuEntry(TGMenuEntry *ent)
    3434{
    3535    memcpy(this, ent, sizeof(*ent));
    3636}
     37#endif
    3738
    3839// -------------------------------------------------------------
     
    8081            frame->BindKey(w, GetKeyCode(el), kKeyMod1Mask);
    8182            if (el->GetType()==kMenuPopup)
    82                 MGMenuEntry(el).GetPopup()->BindKeys(w, frame);
     83                static_cast<MGPopupMenu*>(MGMenuEntry(el).GetPopup())->BindKeys(w, frame);
    8384            continue;
    8485        }
Note: See TracChangeset for help on using the changeset viewer.