Skip to content

Commit f641e50

Browse files
authored
Merge pull request #194 from FoamyGuy/fix_negative_value_error
clamp x value to positive
2 parents 86dbb4a + cbc5f7b commit f641e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_display_text/bitmap_label.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def _place_text(
441441

442442
self._blit(
443443
bitmap,
444-
xposition + my_glyph.dx,
444+
max(xposition + my_glyph.dx, 0),
445445
y_blit_target,
446446
my_glyph.bitmap,
447447
x_1=glyph_offset_x,

0 commit comments

Comments
 (0)