7954ba0
From 0b46212d99191b65a1dd2f723c9cf0250e69a448 Mon Sep 17 00:00:00 2001
7954ba0
From: Nils Philippsen <nils@redhat.com>
7954ba0
Date: Wed, 2 Feb 2011 18:19:35 +0100
7954ba0
Subject: [PATCH] patch: pyslice
7954ba0
7954ba0
Squashed commit of the following:
7954ba0
7954ba0
commit 0b91c365bc1d43a888ed9b78439930c1235b609c
7954ba0
Author: Nils Philippsen <nils@redhat.com>
7954ba0
Date:   Wed Feb 2 17:11:28 2011 +0100
7954ba0
7954ba0
    Bug 641259 - [abrt] gimp-2:2.6.11-1.fc14: py-slice.py:172:slice:TypeError: integer argument expected, got float
7954ba0
7954ba0
    py-slice: cast cellspacing to int in pyslice() to avoid tracebacks
7954ba0
    (cherry picked from commit 0af966b63fcc55b36380d6538dfb30000f71fef9)
7954ba0
---
7954ba0
 plug-ins/pygimp/plug-ins/py-slice.py |    3 +++
7954ba0
 1 files changed, 3 insertions(+), 0 deletions(-)
7954ba0
7954ba0
diff --git a/plug-ins/pygimp/plug-ins/py-slice.py b/plug-ins/pygimp/plug-ins/py-slice.py
7954ba0
index 40743f3..ac35f23 100755
7954ba0
--- a/plug-ins/pygimp/plug-ins/py-slice.py
7954ba0
+++ b/plug-ins/pygimp/plug-ins/py-slice.py
7954ba0
@@ -36,6 +36,9 @@ gettext.install("gimp20-python", gimp.locale_directory, unicode=True)
7954ba0
 def pyslice(image, drawable, save_path, html_filename,
7954ba0
             image_basename, image_extension, separate,
7954ba0
             image_path, cellspacing, animate, skip_caps):
7954ba0
+
7954ba0
+    cellspacing = int (cellspacing)
7954ba0
+
7954ba0
     if animate:
7954ba0
         count = 0
7954ba0
         drw = []
7954ba0
-- 
7954ba0
1.7.4
7954ba0