Browse Source

Fix for claudia not starting

pull/341/head
clarking 2 years ago
parent
commit
8646d2c50e
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/canvaspreviewframe.py

+ 3
- 3
src/canvaspreviewframe.py View File

@@ -73,8 +73,8 @@ class CanvasPreviewFrame(QFrame):
self.fFakeWidth = float(realWidth) / 15
self.fFakeHeight = float(realHeight) / 15

self.setMinimumSize(self.fFakeWidth+padding, self.fFakeHeight+padding)
self.setMaximumSize(self.fFakeWidth*4+padding, self.fFakeHeight+padding)
self.setMinimumSize(int(self.fFakeWidth+padding), int(self.fFakeHeight+padding))
self.setMaximumSize(int(self.fFakeWidth*4+padding), int(self.fFakeHeight+padding))

self.fRenderTarget.setWidth(realWidth)
self.fRenderTarget.setHeight(realHeight)
@@ -198,7 +198,7 @@ class CanvasPreviewFrame(QFrame):

painter.setBrush(self.fViewBrush)
painter.setPen(self.fViewPen)
painter.drawRect(self.fViewRect[iX], self.fViewRect[iY], maxWidth, maxHeight)
painter.drawRect(QRectF(self.fViewRect[iX], self.fViewRect[iY], maxWidth, maxHeight))

if self.fUseCustomPaint:
event.accept()


Loading…
Cancel
Save