Commit 715231a21f042fd72523c967629da6139eb7c7aa

Authored by Paulo Henrique Junqueira Amorim
1 parent c7a8c7d0

FIX: Fixed problem with empty field in the import panel

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
invesalius/gui/dicom_preview_panel.py
@@ -823,6 +823,9 @@ class SingleImagePreview(wx.Panel): @@ -823,6 +823,9 @@ class SingleImagePreview(wx.Panel):
823 value2 = STR_LOCAL %(dicom.image.position[1]) 823 value2 = STR_LOCAL %(dicom.image.position[1])
824 elif dicom.image.orientation_label == 'SAGITTAL': 824 elif dicom.image.orientation_label == 'SAGITTAL':
825 value2 = STR_LOCAL %(dicom.image.position[0]) 825 value2 = STR_LOCAL %(dicom.image.position[0])
  826 + else:
  827 + value2 = ''
  828 +
826 value = "%s\n%s" %(value1, value2) 829 value = "%s\n%s" %(value1, value2)
827 self.text_image_location.SetValue(value) 830 self.text_image_location.SetValue(value)
828 831