Commit 8422ec7f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

don't remove name from text notes

parent f65699f3
Pipeline #28067 passed with stage
in 12 minutes and 5 seconds
......@@ -187,7 +187,7 @@ public class CreateHierarchyCommand extends ModelCommand {
compartment.setZ(text.getZ());
compartment.setGlyph(text.getGlyph());
rap.processNotes(compartment);
text.setNotes(compartment.getNotes());
text.setNotes(compartment.getName() + "\n" + compartment.getNotes());
compartment.setNamePoint(new Point2D.Double(text.getX() + DEFAULT_TITLE_X_COORD_IN_ARTIFITIAL_COMPARTMENT,
text.getY() + DEFAULT_TITLE_Y_COORD_IN_ARTIFITIAL_COMPARTMENT));
......
......@@ -899,6 +899,9 @@ public class ModelContructor {
e.getLine().setEndAtd(mt.getAtd());
e.getLine().setType(mt.getLineType());
mod.setLine(e.getLine());
mod.getLine().trimEnd(mt.getTrimLength());
return mod;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment