From 92882f2a25e10095fb21ac0ef036e08d810b8754 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Fri, 6 Aug 2010 07:53:19 +0000 Subject: Theme Editor: Made progress bar display correctly when resized, fixed some segfaults caused by editing SBS elements from a WPS document and then turning SBS rendering off git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27735 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbprogressbar.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/themeeditor/graphics') diff --git a/utils/themeeditor/graphics/rbprogressbar.cpp b/utils/themeeditor/graphics/rbprogressbar.cpp index 292318cf60..678f3dd68b 100644 --- a/utils/themeeditor/graphics/rbprogressbar.cpp +++ b/utils/themeeditor/graphics/rbprogressbar.cpp @@ -107,6 +107,8 @@ void RBProgressBar::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { + renderSize.setHeight(size.height()); + if(bitmap && !bitmap->isNull()) { painter->drawPixmap(renderSize, *bitmap, renderSize); -- cgit v1.2.3