Fix incorrect piece geometry refresh if disable a mirror line.
Fold line still visible.
This commit is contained in:
parent
24d39bffb7
commit
78d878322d
|
@ -290,6 +290,12 @@ void VFoldLine::UpdateFoldLineLabel(QGraphicsSimpleTextItem *item) const
|
|||
return;
|
||||
}
|
||||
|
||||
if (m_foldLine.isNull())
|
||||
{
|
||||
item->setVisible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_type == FoldLineType::TwoArrows || m_type == FoldLineType::ThreeDots || m_type == FoldLineType::ThreeX ||
|
||||
m_type == FoldLineType::None)
|
||||
{
|
||||
|
|
|
@ -2740,10 +2740,7 @@ void VToolSeamAllowance::UpdateFoldLine(const VFoldLine &foldLine)
|
|||
if (detail.GetFoldLineType() == FoldLineType::ThreeDots || detail.GetFoldLineType() == FoldLineType::ThreeX ||
|
||||
detail.GetFoldLineType() == FoldLineType::TwoArrows)
|
||||
{
|
||||
if (!shape.isEmpty())
|
||||
{
|
||||
m_foldLineMark->setPath(shape.constFirst());
|
||||
}
|
||||
m_foldLineMark->setPath(!shape.isEmpty() ? shape.constFirst() : QPainterPath());
|
||||
m_foldLineLabel->setPath(QPainterPath());
|
||||
}
|
||||
else if (detail.GetFoldLineType() == FoldLineType::Text)
|
||||
|
@ -2765,10 +2762,7 @@ void VToolSeamAllowance::UpdateFoldLine(const VFoldLine &foldLine)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!shape.isEmpty())
|
||||
{
|
||||
m_foldLineMark->setPath(shape.constFirst());
|
||||
}
|
||||
m_foldLineMark->setPath(!shape.isEmpty() ? shape.constFirst() : QPainterPath());
|
||||
|
||||
if (shape.size() > 1 && (settings->GetSingleStrokeOutlineFont() || settings->GetSingleLineFonts()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user