Skip to content

Commit c69bc14

Browse files
committed
~ Fixed: page_layout::Alignment constructors didn't initialize all the fields that caused undefined behaviour.
1 parent 6478a02 commit c69bc14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

filters/page_layout/Alignment.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ namespace page_layout {
2323
Alignment::Alignment()
2424
: m_vert(VCENTER),
2525
m_hor(HCENTER),
26-
m_tolerance(DEFAULT_TOLERANCE) {
26+
m_tolerance(DEFAULT_TOLERANCE),
27+
m_isNull(false) {
2728
}
2829

2930
Alignment::Alignment(Vertical vert, Horizontal hor)
3031
: m_vert(vert),
3132
m_hor(hor),
32-
m_tolerance(DEFAULT_TOLERANCE) {
33+
m_tolerance(DEFAULT_TOLERANCE),
34+
m_isNull(false) {
3335
}
3436

3537
Alignment::Alignment(const QDomElement& el) {

0 commit comments

Comments
 (0)