Skip to content

Commit

Permalink
src/__init__.py: Story.fit_width(): fix setting of y1.
Browse files Browse the repository at this point in the history
Addresses #3599.
  • Loading branch information
julian-smith-artifex-com committed Jun 20, 2024
1 parent 8f5f3eb commit ccfd7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12417,7 +12417,7 @@ def fit_width(self, height, width_min=0, width_max=None, origin=(0, 0), delta=0.
If true we output diagnostics.
'''
x0, y0 = origin
y1 = x0 + height
y1 = y0 + height
def fn(width):
return Rect(x0, y0, x0+width, y1)
return self.fit(fn, width_min, width_max, delta, verbose)
Expand Down

0 comments on commit ccfd7aa

Please sign in to comment.