Skip to content

Commit 8a5a00c

Browse files
committed
RenderedTarget: Fix incorrect assertions
1 parent 87f8831 commit 8a5a00c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/renderedtarget.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ QRectF RenderedTarget::getBoundsForBubble() const
379379
if (rect.height() > slice)
380380
rect.setBottom(rect.top() - slice);
381381

382-
Q_ASSERT(rect.height() <= 8);
382+
Q_ASSERT(rect.height() <= 8 || std::abs(rect.bottom()) == std::numeric_limits<double>::infinity() || std::abs(rect.top()) == std::numeric_limits<double>::infinity());
383383
return QRectF(QPointF(rect.left(), rect.top()), QPointF(rect.right(), rect.bottom()));
384384
}
385385

@@ -441,7 +441,6 @@ void RenderedTarget::mouseReleaseEvent(QMouseEvent *event)
441441
{
442442
m_clicked = false;
443443
Q_ASSERT(m_mouseArea);
444-
Q_ASSERT(m_engine);
445444

446445
// Stop dragging
447446
if (m_mouseArea->draggedSprite() == this)

0 commit comments

Comments
 (0)