Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
c77e8de2
Commit
c77e8de2
authored
Oct 08, 2022
by
Volker Krause
Browse files
Work around PKP 0-sized ticket layout fields when computing layout size
parent
160e9bd0
Pipeline
#243868
passed with stage
in 5 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/uic9183/uic9183ticketlayout.cpp
View file @
c77e8de2
...
...
@@ -193,7 +193,7 @@ QSize Uic9183TicketLayout::size() const
int
height
=
0
;
for
(
auto
f
=
firstField
();
!
f
.
isNull
();
f
=
f
.
next
())
{
width
=
std
::
max
(
width
,
f
.
column
()
+
f
.
width
());
height
=
std
::
max
(
height
,
f
.
row
()
+
f
.
height
());
height
=
std
::
max
(
height
,
f
.
row
()
+
std
::
max
(
1
,
f
.
height
())
)
;
}
return
QSize
(
width
,
height
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment