mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
version 0.7.4
This commit is contained in:
parent
e3bf7477f0
commit
f0f3b2b85f
@ -4,6 +4,31 @@
|
|||||||
# for important features/bug fixes.
|
# for important features/bug fixes.
|
||||||
# Also, each release can have new and improved recipes.
|
# 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
|
- version: 0.7.3
|
||||||
date: 2010-06-18
|
date: 2010-06-18
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ __license__ = 'GPL v3'
|
|||||||
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
__appname__ = 'calibre'
|
__appname__ = 'calibre'
|
||||||
__version__ = '0.7.3'
|
__version__ = '0.7.4'
|
||||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
@ -97,8 +97,12 @@ class CoverView(QWidget): # {{{
|
|||||||
return
|
return
|
||||||
pixmap = self.pixmap
|
pixmap = self.pixmap
|
||||||
pwidth, pheight = pixmap.width(), pixmap.height()
|
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:]
|
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.current_pixmap_size = QSize(self.pwidth, self.pheight)
|
||||||
self.animation.setEndValue(self.current_pixmap_size)
|
self.animation.setEndValue(self.current_pixmap_size)
|
||||||
|
|
||||||
@ -122,7 +126,8 @@ class CoverView(QWidget): # {{{
|
|||||||
self.data = {'id':data.get('id', None)}
|
self.data = {'id':data.get('id', None)}
|
||||||
if data.has_key('cover'):
|
if data.has_key('cover'):
|
||||||
self.pixmap = QPixmap.fromImage(data.pop('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
|
self.pixmap = self.default_pixmap
|
||||||
else:
|
else:
|
||||||
self.pixmap = self.default_pixmap
|
self.pixmap = self.default_pixmap
|
||||||
|
Loading…
x
Reference in New Issue
Block a user