Commit b2612d8a authored by Ralf Habacker's avatar Ralf Habacker
Browse files

SeqLineWidgdet: Fix position ox destruction box when adding by context menu

Because the size of the box is 14x14, the half width is 7 not 10.

CCBUG:418249
parent dc0202e6
......@@ -142,8 +142,8 @@ void SeqLineWidget::setupDestructionBox()
return;
}
QRect rect;
rect.setX(m_pObject->x() + m_pObject->width() / 2 - 10);
rect.setY(m_pObject->y() + m_pObject->height() + m_nLengthY);
rect.setX(m_pObject->x() + m_pObject->width() / 2 - 7);
rect.setY(m_pObject->y() + m_pObject->height() + m_nLengthY - 7);
rect.setWidth(14);
rect.setHeight(14);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment