Temporary disable validation check when export.

This commit is contained in:
Roman Telezhynskyi 2021-09-08 11:19:29 +03:00
parent cc87f3420d
commit 99153594f7
2 changed files with 12 additions and 0 deletions

View File

@ -148,6 +148,12 @@ void VPSheetSceneData::PrepareForExport()
piece->SetSelected(false); piece->SetSelected(false);
} }
} }
m_outOfBoundTmp = layout->LayoutSettings().GetWarningPiecesOutOfBound();
layout->LayoutSettings().SetWarningPiecesOutOfBound(false);
m_pieceSuperpositionTmp = layout->LayoutSettings().GetWarningSuperpositionOfPieces();
layout->LayoutSettings().SetWarningSuperpositionOfPieces(false);
} }
RefreshLayout(); RefreshLayout();
@ -174,6 +180,9 @@ void VPSheetSceneData::CleanAfterExport()
emit layout->PieceSelectionChanged(piece); emit layout->PieceSelectionChanged(piece);
} }
} }
layout->LayoutSettings().SetWarningPiecesOutOfBound(m_outOfBoundTmp);
layout->LayoutSettings().SetWarningSuperpositionOfPieces(m_pieceSuperpositionTmp);
} }
RefreshLayout(); RefreshLayout();

View File

@ -114,6 +114,9 @@ private:
QList<VPPiecePtr> m_slectedPiecesTmp{}; QList<VPPiecePtr> m_slectedPiecesTmp{};
bool m_outOfBoundTmp{false};
bool m_pieceSuperpositionTmp{false};
void ConnectPiece(VPGraphicsPiece *piece); void ConnectPiece(VPGraphicsPiece *piece);
}; };