Fix for Crash when changing Label colors.
@@ -974,7 +974,7 @@ class TextLayout(object):
def _update_color(self):
colors_iter = self._document.get_style_runs('color')
colors = []
- for start, end, color in colors_iter.ranges(0, colors_iter.end):
+ for start, end, color in colors_iter.ranges(0, colors_iter.length):
if color is None:
color = (0, 0, 0, 255)
colors.extend(color * ((end - start) * 4))
