fixes #992 and #998 with explicit int casts

This commit is contained in:
Megan Conners 2022-01-16 12:31:16 -05:00
parent 2b992e70c6
commit 01036e4540
2 changed files with 2 additions and 2 deletions

View file

@ -488,7 +488,7 @@ class corkDelegate(QStyledItemDelegate):
fullSummary = item.data(Outline.summaryFull)
if lineSummary or not fullSummary:
m = self.margin
r = self.mainLineRect.adjusted(-m, -m, m, m / 2)
r = self.mainLineRect.adjusted(-m, -m, m, int(m / 2))
p.save()
p.setPen(Qt.NoPen)
p.setBrush(QColor("#EEE"))

View file

@ -369,7 +369,7 @@ class textEditView(QTextEdit):
opt = settings.textEditor
docHeight = self.document().size().height() + 2 * opt["marginsTB"]
if self.heightMin <= docHeight <= self.heightMax:
self.setMinimumHeight(docHeight)
self.setMinimumHeight(int(docHeight))
def setAutoResize(self, val):
self._autoResize = val