forked from openlp/openlp
Fix test
This commit is contained in:
parent
62ca28cf09
commit
aae8b5b811
@ -210,7 +210,10 @@ class ListPreviewWidget(QtWidgets.QTableWidget, RegistryProperties):
|
||||
pixmap = QtGui.QPixmap(str(slide['image']))
|
||||
else:
|
||||
pixmap = QtGui.QPixmap(str(slide['path']))
|
||||
if pixmap.height() > 0:
|
||||
pixmap_ratio = pixmap.width() / pixmap.height()
|
||||
else:
|
||||
pixmap_ratio = 1
|
||||
label.setPixmap(pixmap)
|
||||
container = QtWidgets.QWidget()
|
||||
layout = AspectRatioLayout(container, pixmap_ratio)
|
||||
|
Loading…
Reference in New Issue
Block a user