From 101b4778087e78ba64e7dd700ea4b01b9c272f5b Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Wed, 24 Aug 2005 21:29:09 +0000 Subject: [PATCH] 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 --- src/motif/menu.cpp | 4 ++-- src/motif/utils.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/motif/menu.cpp b/src/motif/menu.cpp index a65a5df03b..46e9e5a15f 100644 --- a/src/motif/menu.cpp +++ b/src/motif/menu.cpp @@ -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; diff --git a/src/motif/utils.cpp b/src/motif/utils.cpp index 13133ceeac..a28fd9af4c 100644 --- a/src/motif/utils.cpp +++ b/src/motif/utils.cpp @@ -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) ), -- 2.45.2