Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kuvbur committed Aug 25, 2024
1 parent 305963a commit 033996b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Sources/AddOn/Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ bool ParamHelpers::ConvertToProperty (const ParamValue& pvalue, API_Property& pr
if (flag_rec) {
property.isDefault = false;
if (property.value.variantStatus != API_VariantStatusNormal) property.value.variantStatus = API_VariantStatusNormal;
#if !defined(AC_22) || !defined(AC_23)
#if !defined(AC_22) && !defined(AC_23)
if (property.status != API_Property_HasValue) property.status = API_Property_HasValue;
#endif
}
Expand Down
21 changes: 12 additions & 9 deletions Sources/AddOn/Spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ void ShowSub (const SyncSettings& syncSettings)
}
}
}
#if defined(AC_27) || defined(AC_28)
GSErrCode err = ACAPI_Selection_Select (selNeigs, true);
#else
GSErrCode err = ACAPI_Element_Select (selNeigs, true);
#endif
return;
}

Expand Down Expand Up @@ -139,7 +143,7 @@ GSErrCode SpecArray (const SyncSettings& syncSettings, GS::Array<API_Guid>& guid
break;
}
}
}
}
ElementDict elements;
n_elements += GetElementsForRule (rule, paramToRead, elements);
if (!elements.IsEmpty ()) elementstocreate.Push (elements);
Expand All @@ -152,8 +156,6 @@ GSErrCode SpecArray (const SyncSettings& syncSettings, GS::Array<API_Guid>& guid
#else
i = 3; ACAPI_Interface (APIIo_SetNextProcessPhaseID, &subtitle, &i);
#endif


Point2D startpos;
if (!ClickAPoint ("Click point", &startpos))
return NoError;
Expand All @@ -171,7 +173,7 @@ GSErrCode SpecArray (const SyncSettings& syncSettings, GS::Array<API_Guid>& guid
#endif

return err;
}
}

// --------------------------------------------------------------------
// Проверяет значение свойства с правилом и формрует правила
Expand Down Expand Up @@ -269,7 +271,7 @@ void GetParamToReadFromRule (const SpecRuleDict& rules, ParamDictValue& property
GS::UniString rawname = *cItt.key;
#endif
ParamHelpers::AddValueToParamDictValue (paramDict, rawname);
}
}
if (!propertyParams.IsEmpty ()) ParamHelpers::CompareParamDictValue (propertyParams, paramDict);
// Добавляем параметры для каждого элемента
for (UInt32 i = 0; i < rule.elements.GetSize (); i++) {
Expand All @@ -294,8 +296,8 @@ void GetParamToReadFromRule (const SpecRuleDict& rules, ParamDictValue& property
GS::UniString rawname = *cItt.key;
#endif
ParamHelpers::AddValueToParamDictValue (paramToWrite, rawname);
}
}
}
}
}
}

Expand Down Expand Up @@ -588,7 +590,7 @@ GSErrCode PlaceElements (GS::Array<ElementDict>& elementstocreate, ParamDictValu
}
paramOut.Add (element.header.guid, param);
group.Push (element.header.guid);
}
}
pos.y += 2 * dy;
API_Guid groupGuid = APINULLGuid;
#if defined(AC_27) || defined(AC_28)
Expand All @@ -597,7 +599,8 @@ GSErrCode PlaceElements (GS::Array<ElementDict>& elementstocreate, ParamDictValu
err = ACAPI_ElementGroup_Create (group, &groupGuid);
#endif

}

}
return NoError;
});
ACAPI_DisposeElemMemoHdls (&memo);
Expand Down

0 comments on commit 033996b

Please sign in to comment.