- rename to
AlignObjectsandAlignObject - check if
AlignObject.Objectsever contains a different number ofPageItem*than one.
-
AlignObjsis defined inscribusstructs.hand contains:struct AlignObjs { int ObjNr; int Group; double x1; double y1; double x2; double y2; double width; double height; QList<PageItem*> Objects; };
-
AObjectsis defined inscribusdoc.has aQList<AlignObjs> AObjects
- The
AObjectslist is only filled inScribusDoc::buildAlignItemList() - There is another
AObjectsin thePdfLibCorebut it's not the same structure.
... in my eyes: no way to have more (or less) than one item in AObjects.Objects.
See src/main.cpp
I propose the following changes:
- Directly store the
PageItemin AlignObjects (not in anObjectslist) - use small case names for variables.
See src/main-refactored.cpp