Ignore:
Timestamp:
Nov 26, 2018 3:01:03 PM (5 years ago)
Author:
toby
Message:

deal with bad chars in a .gsas file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3711 r3742  
    56105610        else:
    56115611            lines += line.rstrip()+'\n'
    5612     text = wx.StaticText(G2frame.dataWindow,wx.ID_ANY,lines)
     5612    try:
     5613        text = wx.StaticText(G2frame.dataWindow,wx.ID_ANY,lines)
     5614    except:
     5615        text = wx.StaticText(G2frame.dataWindow,wx.ID_ANY,
     5616                                 G2obj.StripUnicode(lines))
    56135617    G2frame.dataWindow.GetSizer().Add(text,1,wx.ALL|wx.EXPAND)
    56145618
Note: See TracChangeset for help on using the changeset viewer.