Skip to content

Commit

Permalink
Height and width restraints between 3/12 inches for SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
lisham2000 committed Aug 16, 2024
1 parent 94785c4 commit fdc3d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nion/swift/ExportDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def __calculate_display_size_in_pixels(self, display_item: DisplayItem.DisplayIt
return Geometry.IntSize(height=display_item.display_data_shape[0], width=display_item.display_data_shape[1])
return Geometry.IntSize(height=288, width=480)

def __enforce_width_height_constraints(self):
def __enforce_width_height_constraints(self) -> None:
min_size_in_inches = 3.0
max_size_in_inches = 12.0
min_size_in_current_units = min_size_in_inches * ConversionUnits[UnitType.INCHES] / ConversionUnits[self.__units]
Expand Down

0 comments on commit fdc3d37

Please sign in to comment.