Skip to content

Commit e961492

Browse files
committed
reject box with width < 3 from json load
1 parent 64378ac commit e961492

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sourceCode/application/logic/model/core/ComputationCore_structures.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ bool S_ProfilsBoxParameters::fromQJsonObject(const QJsonObject &qJsonObj) {
408408
//- boxId >= 0
409409
//- oddPixelLength and oddPixelWidth are odd
410410
//- oddPixelLength >= 3
411-
//- oddPixelWidth >= 1
411+
//- oddPixelWidth >= 3
412412
//- normalize unitVectorDirection if not normalized (usefull in case of human file edition)
413413
//- idxSegmentOwnerOfCenterPoint exist or not.
414414
// . if does not exist => set it to -1, indicating that the box will be unmovable (human edition)
@@ -440,7 +440,7 @@ bool S_ProfilsBoxParameters::fromQJsonObject(const QJsonObject &qJsonObj) {
440440
bool bLength_equalOrGreaterThanThree = (oddPixelLength >= 3.0);
441441

442442
bool bWidthIsEven = bCheckDoubleIsEven(oddPixelWidth);
443-
bool bEvenWidth_equalOrGreaterThanOne = (oddPixelWidth >= 1.0);
443+
bool bEvenWidth_equalOrGreaterThanOne = (oddPixelWidth >= 3.0);
444444

445445
if (bLengthIsEven || bWidthIsEven) {
446446
return(false);

0 commit comments

Comments
 (0)