Use SCASSERT for point, namePoint and lineName
--HG-- branch : feature
This commit is contained in:
parent
a1417fc127
commit
5a22c6baf6
|
@ -323,6 +323,10 @@ void VAbstractTool::AddRecord(const quint32 id, const Tool &toolType, VAbstractP
|
||||||
void VAbstractTool::RefreshLine(QGraphicsEllipseItem *point, VGraphicsSimpleTextItem *namePoint, QGraphicsLineItem *lineName,
|
void VAbstractTool::RefreshLine(QGraphicsEllipseItem *point, VGraphicsSimpleTextItem *namePoint, QGraphicsLineItem *lineName,
|
||||||
const qreal radius)
|
const qreal radius)
|
||||||
{
|
{
|
||||||
|
SCASSERT(point != nullptr);
|
||||||
|
SCASSERT(namePoint != nullptr);
|
||||||
|
SCASSERT(lineName != nullptr);
|
||||||
|
|
||||||
QRectF nRec = namePoint->sceneBoundingRect();
|
QRectF nRec = namePoint->sceneBoundingRect();
|
||||||
nRec.translate(- point->scenePos());
|
nRec.translate(- point->scenePos());
|
||||||
if (point->rect().intersects(nRec) == false)
|
if (point->rect().intersects(nRec) == false)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user