Changeset 6fd4e36 in sasview for src/sas/qtgui/PlotProperties.py


Ignore:
Timestamp:
Mar 28, 2017 8:53:29 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
0268aed
Parents:
a9b568c
Message:

Chi2 display + minor refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/PlotProperties.py

    r0f3c22d r6fd4e36  
    3838        # Fill out the marker combobox 
    3939        self.cbShape.addItems(SHAPES.keys()) 
    40         self.cbShape.setCurrentIndex(self._marker) 
     40        try: 
     41            self.cbShape.setCurrentIndex(self._marker) 
     42        except TypeError: 
     43            marker_index = self.cbShape.findText(self._marker) 
     44            self.cbShape.setCurrentIndex(marker_index) 
    4145        if self._legend: 
    4246            self.txtLegend.setText(self._legend) 
Note: See TracChangeset for help on using the changeset viewer.