[meld] Fix regression in colour animation for chunk actions



commit 50cfc75bfc6dbbed9e834f8c0effad818b9a1712
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Tue Sep 25 07:01:04 2012 +1000

    Fix regression in colour animation for chunk actions
    
    Regression was introduced in commit 4c9093, when refactoring drawing
    for symbolic colour usage.

 meld/filediff.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 733c5b2..ace18cc 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1236,10 +1236,12 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
         if textview.is_focus() and self.cursor.line is not None:
             it = self.textbuffer[pane].get_iter_at_line(self.cursor.line)
             ypos, line_height = self.textview[pane].get_line_yrange(it)
+            context.save()
             context.rectangle(0, ypos - visible.y, width, line_height)
             context.clip()
             context.set_source_color(self.highlight_color)
             context.paint_with_alpha(0.25)
+            context.restore()
 
         current_time = glib.get_current_time()
         new_anim_chunks = []



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]