Remove current project call from Preview::SetCurrentPiece

This commit is contained in:
Trevor SANDY 2022-07-06 17:45:55 +02:00
parent 90d4feffe9
commit 2abaa5d297

View file

@ -93,8 +93,7 @@ lcPreview::lcPreview()
bool lcPreview::SetCurrentPiece(const QString& PartType, int ColorCode)
{
lcPiecesLibrary* Library = lcGetPiecesLibrary();
Project* CurrentProject = lcGetActiveProject();
PieceInfo* Info = Library->FindPiece(PartType.toLatin1().constData(), CurrentProject, false, true);
PieceInfo* Info = Library->FindPiece(PartType.toLatin1().constData(), nullptr, false, false);
if (Info)
{