Skip to content

Commit

Permalink
Merge pull request #999 from amconners/develop
Browse files Browse the repository at this point in the history
Fix for #992 and #998
  • Loading branch information
TheJackiMonster committed Jan 16, 2022
2 parents 2b992e7 + 01036e4 commit 0182a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manuskript/ui/views/corkDelegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def _rotate(angle):
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"))
Expand Down
2 changes: 1 addition & 1 deletion manuskript/ui/views/textEditView.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def sizeChange(self):
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
Expand Down

0 comments on commit 0182a43

Please sign in to comment.