- rename to
AlignObjects
andAlignObject
- check if
AlignObject.Objects
ever contains a different number ofPageItem*
than one.
-
AlignObjs
is defined inscribusstructs.h
and contains:struct AlignObjs { int ObjNr; int Group; double x1; double y1; double x2; double y2; double width; double height; QList<PageItem*> Objects; };
-
AObjects
is defined inscribusdoc.h
as aQList<AlignObjs> AObjects
- The
AObjects
list is only filled inScribusDoc::buildAlignItemList()
- There is another
AObjects
in thePdfLibCore
but 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
PageItem
in AlignObjects (not in anObjects
list) - use small case names for variables.
See src/main-refactored.cpp