git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37bac1d
)
ignore empty pixmaps
author
Felix Domke
<felix.domke@multimedia-labs.de>
Fri, 17 Jul 2009 10:36:22 +0000
(12:36 +0200)
committer
Felix Domke
<felix.domke@multimedia-labs.de>
Fri, 17 Jul 2009 10:36:22 +0000
(12:36 +0200)
lib/gui/esubtitle.cpp
patch
|
blob
|
history
diff --git
a/lib/gui/esubtitle.cpp
b/lib/gui/esubtitle.cpp
index 5cf4cfa2b6d9c403712845ea83a22cb471bccddb..41adebdb8626443af1a8038cbcfdf84e81bd948d 100644
(file)
--- a/
lib/gui/esubtitle.cpp
+++ b/
lib/gui/esubtitle.cpp
@@
-121,7
+121,8
@@
void eSubtitleWidget::setPixmap(ePtr<gPixmap> &pixmap, gRegion changed, eRect pi
changed.scale(m_pixmap_dest.width(), 720, m_pixmap_dest.height(), 576);
changed.moveBy(ePoint(m_pixmap_dest.x(), m_pixmap_dest.y()));
- changed.scale(size().width(), pixmap->size().width(), size().height(), pixmap->size().height());
+ if (pixmap->size().width() && pixmap->size().height())
+ changed.scale(size().width(), pixmap->size().width(), size().height(), pixmap->size().height());
invalidate(changed);
}