Skip to content

float crash issue fix#38

Open
RinST-Dreaming wants to merge 2 commits intocgvict:masterfrom
RinST-Dreaming:master
Open

float crash issue fix#38
RinST-Dreaming wants to merge 2 commits intocgvict:masterfrom
RinST-Dreaming:master

Conversation

@RinST-Dreaming
Copy link

When labeling some pictures , the rolabelimg reports that:
"
roLabelImg-master\libs\canvas.py", line 599, in paintEvent
p.drawLine(leftTop.x(),rightBottom.y(),rightBottom.x(),leftTop.y())
TypeError: arguments did not match any overloaded call:
drawLine(self, l: QLineF): argument 1 has unexpected type 'float'
drawLine(self, line: QLine): argument 1 has unexpected type 'float'
drawLine(self, x1: int, y1: int, x2: int, y2: int): argument 1 has unexpected type 'float'
drawLine(self, p1: QPoint, p2: QPoint): argument 1 has unexpected type 'float'
drawLine(self, p1: Union[QPointF, QPoint], p2: Union[QPointF, QPoint]): argument 1 has unexpected type 'float'
"
and
"
roLabelImg-master\libs\canvas.py", line 595, in paintEvent
p.drawRect(leftTop.x(), leftTop.y(), rectWidth, rectHeight)
TypeError: arguments did not match any overloaded call:
drawRect(self, rect: QRectF): argument 1 has unexpected type 'float'
drawRect(self, x: int, y: int, w: int, h: int): argument 1 has unexpected type 'float'
drawRect(self, r: QRect): argument 1 has unexpected type 'float'
"
This merge adds "int" to avoid this crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant