Skip to content

Commit

Permalink
apply fix for issue #294 from reverted commit 8991697
Browse files Browse the repository at this point in the history
  • Loading branch information
antonsviridenko committed Jul 23, 2017
1 parent 155de41 commit 40235b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/liveview/LiveStreamItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ void LiveStreamItem::paint(QPainter *p, const QStyleOptionGraphicsItem *opt, QWi
p->drawImage(opt->rect, frame);
p->restore();

m_stream.data()->setFrameSizeHint(opt->rect.width(), opt->rect.height());
/* In some cases opt rect width and height may be negative */
if (opt->rect.width() > 0 && opt->rect.height() > 0)
m_stream.data()->setFrameSizeHint(opt->rect.width(), opt->rect.height());
}

}
Expand Down

0 comments on commit 40235b0

Please sign in to comment.