File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ def _text_bounding_box(
314
314
lines += 1
315
315
if xposition == x_start :
316
316
if left is None :
317
- left = my_glyph . dx
317
+ left = 0
318
318
else :
319
319
left = min (left , my_glyph .dx )
320
320
xright = xposition + my_glyph .width + my_glyph .dx
@@ -392,7 +392,7 @@ def _place_text(
392
392
else :
393
393
if xposition == x_start :
394
394
if left is None :
395
- left = my_glyph . dx
395
+ left = 0
396
396
else :
397
397
left = min (left , my_glyph .dx )
398
398
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ def _update_text(self, new_text: str) -> None:
271
271
right = max (right , x + glyph .shift_x , x + glyph .width + glyph .dx )
272
272
if x == 0 :
273
273
if left is None :
274
- left = glyph . dx
274
+ left = 0
275
275
else :
276
276
left = min (left , glyph .dx )
277
277
position_x = x + glyph .dx
@@ -281,15 +281,15 @@ def _update_text(self, new_text: str) -> None:
281
281
)
282
282
if x == 0 :
283
283
if right is None :
284
- right = glyph . dx
284
+ right = 0
285
285
else :
286
286
right = max (right , glyph .dx )
287
287
position_x = x - glyph .width
288
288
289
289
elif self ._label_direction == "TTB" :
290
290
if x == 0 :
291
291
if left is None :
292
- left = glyph . dx
292
+ left = 0
293
293
else :
294
294
left = min (left , glyph .dx )
295
295
if y == 0 :
You can’t perform that action at this time.
0 commit comments