mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Fix freeze for find/replace
The loop was not terminated properly if pieces were invisible. Fixes leozide/leocad#901
This commit is contained in:
parent
c84a730ce4
commit
eae65819f2
1 changed files with 1 additions and 4 deletions
|
@ -4192,10 +4192,7 @@ void lcModel::FindReplacePiece(bool SearchForward, bool FindAll)
|
|||
|
||||
lcPiece* Current = mPieces[CurrentIdx];
|
||||
|
||||
if (!Current->IsVisible(mCurrentStep))
|
||||
continue;
|
||||
|
||||
if (PieceMatches(Current))
|
||||
if (Current->IsVisible(mCurrentStep) && PieceMatches(Current))
|
||||
{
|
||||
if (FindAll)
|
||||
Selection.Add(Current);
|
||||
|
|
Loading…
Reference in a new issue