Menu

#3 XmtAskForItem bug

open
nobody
Library (3)
5
2004-03-15
2004-03-15
Anonymous
No

XmtAskForItem function does not work. Regardless of
what is selected in the dialog's list, the error dialog
stating "Please select an item that appears on the
list" appears. I can patch the problem by changing
GetItem(...) in AskForItem.c so that the line reading:
item_labels[i] = XmtCreateXmString(data.items[i]);
is replaced by:
{
#ifdef XMSTRING_TO_COMPOUND_TEXT_BUG
String charset = XmSTRING_DEFAULT_CHARSET;
#else
# if XmVersion < 1002
String charset = XmSTRING_DEFAULT_CHARSET;
# else
String charset = XmFONTLIST_DEFAULT_TAG;
# endif
#endif
item_labels[i] = XmStringCreate(data.items[i],
charset);
}

I am using xmt400 on OSF1 V5.1
My XmVersion is 1002

A sample program is attached

Discussion

  • Nobody/Anonymous

    XmtAskForItem bug reproduction file.

     
  • Grant McDorman

    Grant McDorman - 2004-12-10

    Logged In: YES
    user_id=178930

    Please try with the latest CVS version of Xmt. A number of
    bug fixes have been made, including some fixes affecting
    XmtCreateXmString.

     

Log in to post a comment.