bugfix
[minwii.git] / src / minwii / widgets / column.py
index fc7dde2..d829152 100755 (executable)
@@ -72,9 +72,9 @@ class Column(pygame.sprite.DirtySprite) :
         if state :
             group.change_layer(self, FOREGROUND_LAYER)
             sur = self.surOn
         if state :
             group.change_layer(self, FOREGROUND_LAYER)
             sur = self.surOn
+            rect = self.rectOn
             if syllabus :
                 sur = sur.copy()
             if syllabus :
                 sur = sur.copy()
-                rect = self.rectOn
                 renderedSyl = LYRICS_FONT.render(syllabus, True, FONT_COLOR)
                 sw, sh, = renderedSyl.get_size()
                 w, h = self.rectOn.w, self.rectOn.h
                 renderedSyl = LYRICS_FONT.render(syllabus, True, FONT_COLOR)
                 sw, sh, = renderedSyl.get_size()
                 w, h = self.rectOn.w, self.rectOn.h