avoid traceback in colorxhtml plugin (#651002)
This commit is contained in:
parent
53c2e427d4
commit
c6107e2887
43
gimp-2.6.11-colorxhtml.patch
Normal file
43
gimp-2.6.11-colorxhtml.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
From 16bfd230e569709724166670987475756a6d3261 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nils Philippsen <nils@redhat.com>
|
||||||
|
Date: Tue, 9 Nov 2010 17:45:37 +0100
|
||||||
|
Subject: [PATCH] patch: colorxhtml
|
||||||
|
|
||||||
|
Squashed commit of the following:
|
||||||
|
|
||||||
|
commit f77a97fa0a7178394b81082749d6719849aa1508
|
||||||
|
Author: Nils Philippsen <nils@redhat.com>
|
||||||
|
Date: Tue Nov 9 11:28:30 2010 +0100
|
||||||
|
|
||||||
|
colorxhtml: check validity of source_type
|
||||||
|
(cherry picked from commit d2ebadcfb906af972edb95807e2887af4ad76856)
|
||||||
|
---
|
||||||
|
plug-ins/pygimp/plug-ins/colorxhtml.py | 5 ++++-
|
||||||
|
1 files changed, 4 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/plug-ins/pygimp/plug-ins/colorxhtml.py b/plug-ins/pygimp/plug-ins/colorxhtml.py
|
||||||
|
index 0022c65..ed8e52d 100755
|
||||||
|
--- a/plug-ins/pygimp/plug-ins/colorxhtml.py
|
||||||
|
+++ b/plug-ins/pygimp/plug-ins/colorxhtml.py
|
||||||
|
@@ -27,7 +27,7 @@ from gimpfu import *
|
||||||
|
|
||||||
|
gettext.install("gimp20-python", gimp.locale_directory, unicode=True)
|
||||||
|
|
||||||
|
-(CHARS_SOURCE, CHARS_FILE, CHARS_PARAMETER) = range(3)
|
||||||
|
+all_source_types = (CHARS_SOURCE, CHARS_FILE, CHARS_PARAMETER) = range(3)
|
||||||
|
|
||||||
|
escape_table = {
|
||||||
|
'&': '&',
|
||||||
|
@@ -67,6 +67,9 @@ def colorxhtml(img, drawable, filename, raw_filename,
|
||||||
|
if not drawable.is_rgb or drawable.has_alpha:
|
||||||
|
return
|
||||||
|
|
||||||
|
+ if source_type not in all_source_types:
|
||||||
|
+ return
|
||||||
|
+
|
||||||
|
gimp.tile_cache_ntiles(width / gimp.tile_width() + 1)
|
||||||
|
|
||||||
|
html = file(filename, 'w')
|
||||||
|
--
|
||||||
|
1.7.3.2
|
||||||
|
|
@ -31,7 +31,7 @@ Summary: GNU Image Manipulation Program
|
|||||||
Name: gimp
|
Name: gimp
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 2.6.11
|
Version: 2.6.11
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
%define binver 2.6
|
%define binver 2.6
|
||||||
%define gimp_lang_ver 20
|
%define gimp_lang_ver 20
|
||||||
%define interfacever 2.0
|
%define interfacever 2.0
|
||||||
@ -131,6 +131,9 @@ Patch3: gimp-2.6.8-gold.patch
|
|||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=623045
|
# https://bugzilla.gnome.org/show_bug.cgi?id=623045
|
||||||
# make script-fu logging IPv6 aware
|
# make script-fu logging IPv6 aware
|
||||||
Patch4: gimp-2.6.10-script-fu-ipv6.patch
|
Patch4: gimp-2.6.10-script-fu-ipv6.patch
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=651002
|
||||||
|
# avoid traceback in colorxhtml plugin, upstreamed
|
||||||
|
Patch5: gimp-2.6.11-colorxhtml.patch
|
||||||
# files changed by autoreconf after applying the above
|
# files changed by autoreconf after applying the above
|
||||||
Patch10: gimp-2.6.11-1-autoreconf.patch.bz2
|
Patch10: gimp-2.6.11-1-autoreconf.patch.bz2
|
||||||
|
|
||||||
@ -215,6 +218,7 @@ EOF
|
|||||||
%patch2 -p1 -b .minimize-dialogs
|
%patch2 -p1 -b .minimize-dialogs
|
||||||
%patch3 -p1 -b .gold
|
%patch3 -p1 -b .gold
|
||||||
%patch4 -p1 -b .script-fu-ipv6
|
%patch4 -p1 -b .script-fu-ipv6
|
||||||
|
%patch5 -p1 -b .colorxhtml
|
||||||
%patch10 -p1 -b .autoreconf
|
%patch10 -p1 -b .autoreconf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -478,6 +482,9 @@ fi
|
|||||||
%{_libdir}/gimp/%{interfacever}/plug-ins/help-browser
|
%{_libdir}/gimp/%{interfacever}/plug-ins/help-browser
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 09 2010 Nils Philippsen <nils@redhat.com> - 2:2.6.11-3
|
||||||
|
- avoid traceback in colorxhtml plugin (#651002)
|
||||||
|
|
||||||
* Sat Nov 06 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.6.11-2
|
* Sat Nov 06 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.6.11-2
|
||||||
- rebuilt (poppler)
|
- rebuilt (poppler)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user