File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -106,9 +106,6 @@ def __init__(
106
106
self ._save_text = save_text
107
107
self ._text = self ._replace_tabs (self ._text )
108
108
109
- if self ._label_direction == "RTL" :
110
- self ._text = "" .join (reversed (self ._text ))
111
-
112
109
# call the text updater with all the arguments.
113
110
self ._reset_text (
114
111
font = font ,
@@ -138,8 +135,6 @@ def _reset_text(
138
135
139
136
if self ._save_text : # text string will be saved
140
137
self ._text = self ._replace_tabs (text )
141
- if self ._label_direction == "RTL" :
142
- self ._text = "" .join (reversed (self ._text ))
143
138
else :
144
139
self ._text = None # save a None value since text string is not saved
145
140
@@ -205,7 +200,9 @@ def _reset_text(
205
200
# Place the text into the Bitmap
206
201
self ._place_text (
207
202
self ._bitmap ,
208
- text ,
203
+ text
204
+ if self ._label_direction != "RTL"
205
+ else "" .join (reversed (self ._text )),
209
206
self ._font ,
210
207
self ._padding_left - x_offset ,
211
208
self ._padding_top + y_offset ,
You can’t perform that action at this time.
0 commit comments