Skip to content

Commit

Permalink
Fixed #39 - hardcode 'centre' in task.py, line 560
Browse files Browse the repository at this point in the history
  • Loading branch information
csgoh committed Jun 26, 2023
1 parent 948f7c9 commit f69e52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/roadmapper/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,15 +549,15 @@ def draw(self, painter: Painter) -> None:
height,
)

if (box_x == 0 and box_y == 0 and box_width == 0 and box_height == 0) != True:
if box_x != 0 or box_y != 0 or box_width != 0 or box_height != 0:
painter.draw_box_with_text(
box_x,
box_y,
box_width,
box_height,
self.fill_colour,
self.text,
"centre",
self.text_alignment,
self.font,
self.font_size,
self.font_colour,
Expand Down

0 comments on commit f69e52e

Please sign in to comment.