Skip to content

Commit

Permalink
fixed typo that set fill color instead of stroke color when stroke no…
Browse files Browse the repository at this point in the history
…t specified (#82)
  • Loading branch information
govekk authored Jul 7, 2023
1 parent eee3985 commit 99b5e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ezomero/_posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ def _shape_to_omero_shape(shape: Union[Point, Line, Rectangle, Ellipse,
if shape.stroke_color is not None:
omero_shape.setStrokeColor(rint(_rgba_to_int(shape.stroke_color)))
else:
omero_shape.setFillColor(rint(_rgba_to_int((255, 255, 0, 255))))
omero_shape.setStrokeColor(rint(_rgba_to_int((255, 255, 0, 255))))
if shape.stroke_width is not None:
omero_shape.setStrokeWidth(LengthI(shape.stroke_width,
enums.UnitsLength.PIXEL))
Expand Down

0 comments on commit 99b5e1b

Please sign in to comment.