Changeset 0b0b7de in sasview


Ignore:
Timestamp:
Sep 14, 2011 7:26:05 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
989767c
Parents:
2719255
Message:

Fix problem with multi-line process entries in CanSAS1D format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_panel.py

    r2719255 r0b0b7de  
    441441                         
    442442                        for process in process_list: 
     443                            process_str = str(process).replace('\n',' ') 
     444                            if len(process_str)>20: 
     445                                process_str = process_str[:20]+' [...]' 
    443446                            i_t_c = self.tree_ctrl.AppendItem(d_p_c, 
    444                                                               process.__str__()) 
     447                                                              process_str) 
    445448                        theory_child = self.tree_ctrl.AppendItem(data_c, "THEORIES") 
    446449                        
Note: See TracChangeset for help on using the changeset viewer.