Use SCASSERT for point, namePoint and lineName

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2015-12-11 15:07:05 +02:00
parent a1417fc127
commit 5a22c6baf6

View file

@ -323,6 +323,10 @@ void VAbstractTool::AddRecord(const quint32 id, const Tool &toolType, VAbstractP
void VAbstractTool::RefreshLine(QGraphicsEllipseItem *point, VGraphicsSimpleTextItem *namePoint, QGraphicsLineItem *lineName,
const qreal radius)
{
SCASSERT(point != nullptr);
SCASSERT(namePoint != nullptr);
SCASSERT(lineName != nullptr);
QRectF nRec = namePoint->sceneBoundingRect();
nRec.translate(- point->scenePos());
if (point->rect().intersects(nRec) == false)