Merge remote-tracking branch

'origin/GP-1111_ghidra1_PropogateStructPackSetting' into patch (Closes
#3193)
This commit is contained in:
ghidra1 2021-08-02 17:06:58 -04:00
commit 10db074bcc
2 changed files with 19 additions and 7 deletions

View file

@ -1216,11 +1216,13 @@ class StructureEditorModel extends CompEditorModel {
final StructureDataType structureDataType =
new StructureDataType(originalCategoryPath, uniqueName, length, originalDTM);
// if (isPackingEnabled()) {
// structureDataType.setPackingValue(getPackingValue());
// }
// adopt pack setting from current structure
structureDataType.setPackingEnabled(isPackingEnabled());
if (getPackingType() == PackingType.EXPLICIT) {
structureDataType.setExplicitPackingValue(getExplicitPackingValue());
}
// Get data type components to make into structure.
// Get data type components to make into structure.
DataTypeComponent firstDtc = null;
DataTypeComponent lastDtc = null;
for (int rowIndex = minRow; rowIndex < maxRow; rowIndex++) {