From 767c0c99050c9ba714841d556065653011a3bc68 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 17 Jul 2009 12:36:22 +0200 Subject: ignore empty pixmaps --- lib/gui/esubtitle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/gui/esubtitle.cpp') 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 &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); } -- cgit v1.2.3