As reported by Chris Elliott some releases of Lesstif crash
when setting the font list of a widget. The code is disabled for now for all Lesstif versions. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
07910a9a7e
commit
101b477808
@ -656,8 +656,8 @@ void wxMenu::SetForegroundColour(const wxColour& col)
|
||||
|
||||
void wxMenu::ChangeFont(bool keepOriginalSize)
|
||||
{
|
||||
// Lesstif 0.87 hangs here, but 0.93 does not
|
||||
#if !wxCHECK_LESSTIF() || wxCHECK_LESSTIF_VERSION( 0, 93 )
|
||||
// Lesstif 0.87 hangs here, but 0.93 does not; MBN: sometimes it does
|
||||
#if !wxCHECK_LESSTIF() // || wxCHECK_LESSTIF_VERSION( 0, 93 )
|
||||
if (!m_font.Ok() || !m_menuWidget)
|
||||
return;
|
||||
|
||||
|
@ -928,8 +928,8 @@ void wxDoChangeBackgroundColour(WXWidget widget, wxColour& backgroundColour, boo
|
||||
|
||||
extern void wxDoChangeFont(WXWidget widget, wxFont& font)
|
||||
{
|
||||
// Lesstif 0.87 hangs here, but 0.93 does not
|
||||
#if !wxCHECK_LESSTIF() || wxCHECK_LESSTIF_VERSION( 0, 93 )
|
||||
// Lesstif 0.87 hangs here, but 0.93 does not; MBN: sometimes it does
|
||||
#if !wxCHECK_LESSTIF() // || wxCHECK_LESSTIF_VERSION( 0, 93 )
|
||||
Widget w = (Widget)widget;
|
||||
XtVaSetValues( w,
|
||||
wxFont::GetFontTag(), font.GetFontTypeC( XtDisplay(w) ),
|
||||
|
Loading…
Reference in New Issue
Block a user