File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,10 @@ def _reset_text(
154
154
for _ in self ._local_group :
155
155
self ._local_group .pop (0 )
156
156
157
+ # Free the bitmap and tilegrid since they are removed
158
+ self ._bitmap = None
159
+ self ._tilegrid = None
160
+
157
161
else : # The text string is not empty, so create the Bitmap and TileGrid and
158
162
# append to the self Group
159
163
@@ -200,9 +204,7 @@ def _reset_text(
200
204
# Place the text into the Bitmap
201
205
self ._place_text (
202
206
self ._bitmap ,
203
- text
204
- if self ._label_direction != "RTL"
205
- else "" .join (reversed (self ._text )),
207
+ text if self ._label_direction != "RTL" else "" .join (reversed (text )),
206
208
self ._font ,
207
209
self ._padding_left - x_offset ,
208
210
self ._padding_top + y_offset ,
You can’t perform that action at this time.
0 commit comments