Ghidra is a software reverse engineering (SRE) framework
GP-1111 corrected affected test and help docs
ghidra1f72d679efff6
diff --git a/Ghidra/Features/Base/src/main/help/help/topics/DataTypeEditors/StructureEditor.htm b/Ghidra/Features/Base/src/main/help/help/topics/DataTypeEditors/StructureEditor.htmindex fa8119e379..f3be8ce6b7 100644--- a/Ghidra/Features/Base/src/main/help/help/topics/DataTypeEditors/StructureEditor.htm+++ b/Ghidra/Features/Base/src/main/help/help/topics/DataTypeEditors/StructureEditor.htm@@ -631,7 +631,18 @@does this by selecting the components in the editor and clicking the <IMG src="images/cstruct.png" alt=""> <B>Create Structure From Selection</B> button. The user is thenprompted for the name of the new structure. Once a unique name is specified the new structure- is created and a component containing it replaces the selected components.</P>+ is created and a component containing it replaces the selected components. The newly created+ structure will adopt the same pack setting as the current structure.</P>++ <P>It is important to note that when using this action with a packed structure the placement of components+ within the new stucture may change as can offsets of trailing components within the current structure.+ The size of the current structure may also be affected as a result of this change.</P>++ <P>If you do not like the result of the change you can restore the previous state of the+ current structure by using the <A HREF="#Structure_Editor_Unpackage_Component"></A> action on+ the new structure component, although the newly created structure will still exist within+ the Data Type Manager.</P>+</BLOCKQUOTE><BR></BLOCKQUOTE>diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorLockedActions2Test.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorLockedActions2Test.javaindex f9398846bc..6d19c55eb8 100644--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorLockedActions2Test.java+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorLockedActions2Test.java@@ -307,10 +307,10 @@ public class StructureEditorLockedActions2Test extends AbstractStructureEditorLoassertTrue(internalDt0.isEquivalent(originalDt1));assertTrue(internalDt1.isEquivalent(originalDt2));assertTrue(internalDt2.isEquivalent(originalDt3));- assertEquals(14, getDataType(1).getLength());- assertEquals(14, getModel().getComponent(1).getLength());+ assertEquals(16, getDataType(1).getLength());+ assertEquals(16, getModel().getComponent(1).getLength());assertEquals(originalDt4, getDataType(2));- assertEquals(32, getModel().getLength());+ assertEquals(36, getModel().getLength());}/**