From f0f3b2b85fb124420f476358b03c25822bad0b0f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 19 Jun 2010 18:02:25 -0600 Subject: [PATCH] version 0.7.4 --- Changelog.yaml | 25 +++++++++++++++++++++++++ src/calibre/constants.py | 2 +- src/calibre/gui2/book_details.py | 9 +++++++-- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/Changelog.yaml b/Changelog.yaml index 8512612a55..2e12b8bfbc 100644 --- a/Changelog.yaml +++ b/Changelog.yaml @@ -4,6 +4,31 @@ # for important features/bug fixes. # Also, each release can have new and improved recipes. +- version: 0.7.4 + date: 2010-06-19 + + bug fixes: + - title: "Fix regression in 0.7.3 that broke creating custom columns of rating or text types" + + - title: "Fix cover browser breaking if you click on a book in the book list while cover browser is animated" + + - title: "Fix a bug that could be triggered with the new book details pane if a book has a zero size cover" + tickets: [5889] + + - title: "SONY driver: Fix bug preventing the editing of collections in the device view" + + new recipes: + - title: Auto Prove + author: Gabriele Marini + + - title: Forbes India, Maximum PC, Today Online + author: rty + + improved recipes: + - WSJ + - Psychology Today + + - version: 0.7.3 date: 2010-06-18 diff --git a/src/calibre/constants.py b/src/calibre/constants.py index aa079cbfec..0cc188503f 100644 --- a/src/calibre/constants.py +++ b/src/calibre/constants.py @@ -2,7 +2,7 @@ __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __docformat__ = 'restructuredtext en' __appname__ = 'calibre' -__version__ = '0.7.3' +__version__ = '0.7.4' __author__ = "Kovid Goyal " import re diff --git a/src/calibre/gui2/book_details.py b/src/calibre/gui2/book_details.py index 6d7cfed6ff..f87f8886a5 100644 --- a/src/calibre/gui2/book_details.py +++ b/src/calibre/gui2/book_details.py @@ -97,8 +97,12 @@ class CoverView(QWidget): # {{{ return pixmap = self.pixmap pwidth, pheight = pixmap.width(), pixmap.height() - self.pwidth, self.pheight = fit_image(pwidth, pheight, + try: + self.pwidth, self.pheight = fit_image(pwidth, pheight, self.rect().width(), self.rect().height())[1:] + except: + self.pwidth, self.pheight = self.rect().width()-1, \ + self.rect().height()-1 self.current_pixmap_size = QSize(self.pwidth, self.pheight) self.animation.setEndValue(self.current_pixmap_size) @@ -122,7 +126,8 @@ class CoverView(QWidget): # {{{ self.data = {'id':data.get('id', None)} if data.has_key('cover'): self.pixmap = QPixmap.fromImage(data.pop('cover')) - if self.pixmap.isNull(): + if self.pixmap.isNull() or self.pixmap.width() < 5 or \ + self.pixmap.height() < 5: self.pixmap = self.default_pixmap else: self.pixmap = self.default_pixmap