kopia lustrzana https://github.com/peterhinch/micropython-font-to-py
writer.py Fix stringlen bug with zero length string.
rodzic
c90a904ae1
commit
dcc97abc3f
|
@ -150,6 +150,8 @@ class Writer():
|
||||||
self._printline(rstr, invert) # Recurse
|
self._printline(rstr, invert) # Recurse
|
||||||
|
|
||||||
def stringlen(self, string, oh=False):
|
def stringlen(self, string, oh=False):
|
||||||
|
if not len(string):
|
||||||
|
return 0
|
||||||
sc = self._getstate().text_col # Start column
|
sc = self._getstate().text_col # Start column
|
||||||
wd = self.screenwidth
|
wd = self.screenwidth
|
||||||
l = 0
|
l = 0
|
||||||
|
|
Ładowanie…
Reference in New Issue