forked from openlp/openlp
Fixed problem in "AmendThemForm"
This commit is contained in:
parent
803987d402
commit
08c852f8ee
@ -674,7 +674,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
||||
self.theme.font_main_italics)# italic
|
||||
metrics = QtGui.QFontMetrics(mainFont)
|
||||
page_length = (int(self.FontMainHeightSpinBox.value()) / metrics.height() - 2) - 1
|
||||
self.FontMainLinesPageLabel.setText(
|
||||
self.trUtf8(u'Slide Height is %s rows') % page_length)
|
||||
page_length_text = unicode(self.trUtf8(u'Slide Height is %s rows'))
|
||||
self.FontMainLinesPageLabel.setText(page_length_text % page_length)
|
||||
frame = self.thememanager.generateImage(theme)
|
||||
self.ThemePreview.setPixmap(QtGui.QPixmap.fromImage(frame))
|
||||
|
Loading…
Reference in New Issue
Block a user