[meld/ui-next] chunkmap: PEP8
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/ui-next] chunkmap: PEP8
- Date: Sat, 13 Apr 2019 00:04:27 +0000 (UTC)
commit f928994bb3105ee254d3d92efb28116447ee6b60
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Apr 13 09:50:25 2019 +1000
chunkmap: PEP8
meld/chunkmap.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meld/chunkmap.py b/meld/chunkmap.py
index 5c4d032b..4a038872 100644
--- a/meld/chunkmap.py
+++ b/meld/chunkmap.py
@@ -138,7 +138,8 @@ class ChunkMap(Gtk.DrawingArea):
for tag, diffs in tagged_diffs.items():
cache_ctx.set_source_rgba(*self.fill_colors[tag])
for y0, y1 in diffs:
- y0, y1 = round(y0 * height_scale) + 0.5, round(y1 * height_scale) - 0.5
+ y0 = round(y0 * height_scale) + 0.5
+ y1 = round(y1 * height_scale) - 0.5
cache_ctx.rectangle(x0, y0, x1, y1 - y0)
cache_ctx.fill_preserve()
cache_ctx.set_source_rgba(*self.line_colors[tag])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]