Fix #3944 (More than 2 rating stars not fit in the rating column after resize)

This commit is contained in:
Kovid Goyal 2009-11-15 10:53:24 -07:00
parent 6cbede48fb
commit af93ce32e5
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -68,6 +68,7 @@ class LibraryDelegate(QItemDelegate):
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)