Skip to content

Commit

Permalink
FEM: Replace invalid General_description with Description
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed Apr 27, 2015
1 parent 7036d46 commit ab26d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/MechanicalMaterial.py
Expand Up @@ -186,8 +186,8 @@ def choose_material(self, index):
self.form.cb_materials.setCurrentIndex(index)
self.set_mat_params_in_combo_box(self.obj.Material)
gen_mat_desc = ""
if 'General_description' in self.obj.Material:
gen_mat_desc = self.obj.Material['General_description']
if 'Description' in self.obj.Material:
gen_mat_desc = self.obj.Material['Description']
self.form.l_mat_description.setText(gen_mat_desc)
self.print_mat_data(self.obj.Material)

Expand Down

0 comments on commit ab26d7f

Please sign in to comment.