1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## svn-r4555_fix-crash-on-icon-size-change.dpatch by Chris Coulson <chrisccoulson@googlemail.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Patch backported from SVN trunk revisions 4555 and 4556
6
## DP: Launchpad bug: https://bugs.launchpad.net/f-spot/+bug/291189
7
## DP: Gnome bug: http://bugzilla.gnome.org/show_bug.cgi?id=557793
10
diff -urNad f-spot-0.5.0.3~/src/Core/Tag.cs f-spot-0.5.0.3/src/Core/Tag.cs
11
--- f-spot-0.5.0.3~/src/Core/Tag.cs 2008-08-31 09:52:18.000000000 +0100
12
+++ f-spot-0.5.0.3/src/Core/Tag.cs 2008-11-04 17:39:37.000000000 +0000
14
if (Math.Max (cached_icon.Width, cached_icon.Height) <= (int) tag_icon_size)
20
if (Math.Max (icon.Width, icon.Height) >= (int) tag_icon_size) { //Don't upscale
21
if (cached_icon != null)
22
cached_icon.Dispose ();
23
diff -urNad f-spot-0.5.0.3~/src/TagSelectionWidget.cs f-spot-0.5.0.3/src/TagSelectionWidget.cs
24
--- f-spot-0.5.0.3~/src/TagSelectionWidget.cs 2008-09-26 09:27:39.000000000 +0100
25
+++ f-spot-0.5.0.3/src/TagSelectionWidget.cs 2008-11-04 17:37:19.000000000 +0000
27
SetBackground (renderer, tag);
29
// FIXME I can't set the Pixbuf to null, not sure if it's a GTK# bug...
30
- if (tag.Icon != null) {
31
+ if (tag.SizedIcon != null) {
32
if (FSpot.ColorManagement.IsEnabled) {
34
Gdk.Pixbuf temp = tag.SizedIcon.Copy();