mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 23:46:00 +01:00
Fix #3944 (More than 2 rating stars not fit in the rating column after resize)
This commit is contained in:
parent
6cbede48fb
commit
af93ce32e5
2 changed files with 2 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class NewScientist(BasicNewsRecipe):
|
|||
description = 'Science news and science articles from New Scientist.'
|
||||
language = 'en'
|
||||
publisher = 'New Scientist'
|
||||
category = 'science news, science articles, science jobs, drugs, cancer, depression, computer software, sex'
|
||||
category = 'science news, science articles, science jobs, drugs, cancer, depression, computer software'
|
||||
delay = 3
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 100
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ def draw_star():
|
|||
self.drawFocus(painter, option, option.rect)
|
||||
try:
|
||||
painter.setRenderHint(QPainter.Antialiasing)
|
||||
painter.setClipRect(option.rect)
|
||||
y = option.rect.center().y()-self.SIZE/2.
|
||||
x = option.rect.right() - self.SIZE
|
||||
painter.setPen(self.PEN)
|
||||
|
|
|
|||
Loading…
Reference in a new issue