aboutsummaryrefslogtreecommitdiff
path: root/lib/gui
diff options
context:
space:
mode:
authorFelix Domke <felix.domke@multimedia-labs.de>2009-07-17 12:36:22 +0200
committerFelix Domke <felix.domke@multimedia-labs.de>2009-07-17 12:36:22 +0200
commit767c0c99050c9ba714841d556065653011a3bc68 (patch)
tree43176ee864b47fcab643270586d4c693f412b761 /lib/gui
parent37bac1d63115720ca83f064e0e4f5426271fc364 (diff)
downloadenigma2-767c0c99050c9ba714841d556065653011a3bc68.tar.gz
enigma2-767c0c99050c9ba714841d556065653011a3bc68.zip
ignore empty pixmaps
Diffstat (limited to 'lib/gui')
-rw-r--r--lib/gui/esubtitle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gui/esubtitle.cpp b/lib/gui/esubtitle.cpp
index 5cf4cfa2..41adebdb 100644
--- 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);
}