Fix Valentina crash.
Valentina crashes if click on curve control point. --HG-- branch : develop
This commit is contained in:
parent
99de6f8e22
commit
4d7d2ac607
|
@ -170,10 +170,10 @@ enum class Vis : ToolVisHolderType
|
||||||
{
|
{
|
||||||
ControlPointSpline = static_cast<ToolVisHolderType>(Tool::LAST_ONE_DO_NOT_USE),
|
ControlPointSpline = static_cast<ToolVisHolderType>(Tool::LAST_ONE_DO_NOT_USE),
|
||||||
GraphicsSimpleTextItem,
|
GraphicsSimpleTextItem,
|
||||||
ScaledLine,
|
|
||||||
ScaledEllipse,
|
|
||||||
SimplePoint,
|
SimplePoint,
|
||||||
SimpleCurve,
|
SimpleCurve,
|
||||||
|
ScaledLine,
|
||||||
|
ScaledEllipse,
|
||||||
Line,
|
Line,
|
||||||
Path,
|
Path,
|
||||||
Operation,
|
Operation,
|
||||||
|
|
|
@ -445,8 +445,8 @@ void VMainGraphicsView::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (this->scene()->items().contains(list.at(i)))
|
if (this->scene()->items().contains(list.at(i)))
|
||||||
{
|
{
|
||||||
if (list.at(i)->type() <= VSimpleCurve::Type &&
|
if (list.at(i)->type() > QGraphicsItem::UserType &&
|
||||||
list.at(i)->type() > QGraphicsItem::UserType)
|
list.at(i)->type() <= VSimpleCurve::Type)
|
||||||
{
|
{
|
||||||
emit itemClicked(list.at(i));
|
emit itemClicked(list.at(i));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user