diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-08-06 07:53:19 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-06 07:53:19 +0000 |
| commit | 92882f2a25e10095fb21ac0ef036e08d810b8754 (patch) | |
| tree | bc34bb701d65179ae2627fa97278f322390d5ce2 /utils/themeeditor/graphics | |
| parent | d505bc01195ddc4ca6e57efe42b97f1ce49d6afd (diff) | |
| download | rockbox-92882f2a25e10095fb21ac0ef036e08d810b8754.zip rockbox-92882f2a25e10095fb21ac0ef036e08d810b8754.tar.gz rockbox-92882f2a25e10095fb21ac0ef036e08d810b8754.tar.bz2 rockbox-92882f2a25e10095fb21ac0ef036e08d810b8754.tar.xz | |
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
Diffstat (limited to 'utils/themeeditor/graphics')
| -rw-r--r-- | utils/themeeditor/graphics/rbprogressbar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbprogressbar.cpp b/utils/themeeditor/graphics/rbprogressbar.cpp index 292318c..678f3dd 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); |