Commit c77e8de2 authored by Volker Krause's avatar 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
......@@ -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);
}
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