This commit is contained in:
Raymond Hettinger 2014-07-20 21:31:35 -07:00
commit 569a7fa13a
1 changed files with 1 additions and 1 deletions

View File

@ -2594,7 +2594,7 @@ class RawTurtle(TPen, TNavigator):
Example (for a Turtle instance named turtle):
>>> turtle.setundobuffer(42)
"""
if size is None:
if size is None or size <= 0:
self.undobuffer = None
else:
self.undobuffer = Tbuffer(size)