Fix qtdeclarative baseline test failure for text tables
Amend 97cfd49401
, which resulted in
incorrectly laid out tables in Text elements.
Reported by the baseline test for the scenegraph. Not reproducible using
a QtWidget text widget, so no unit-test added here.
Pick-to: 6.2 5.15
Task-number: QTBUG-86671
Task-number: QTBUG-97463
Change-Id: I607b1fea3fb5923f81f05a3646bafebec3dcf3b5
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
This commit is contained in:
parent
d69a4e95b1
commit
220510a885
@ -2366,10 +2366,10 @@ QTextLayoutStruct QTextDocumentLayoutPrivate::layoutCell(QTextTable *t, const QT
|
||||
floatMinWidth = qMax(floatMinWidth, cd->minimumWidth);
|
||||
}
|
||||
|
||||
// constraint the maximumWidth by the minimum width of the fixed size floats, to
|
||||
// keep them visible
|
||||
// constraint the maximum/minimumWidth by the minimum width of the fixed size floats,
|
||||
// to keep them visible
|
||||
layoutStruct.maximumWidth = qMax(layoutStruct.maximumWidth, floatMinWidth);
|
||||
layoutStruct.minimumWidth = floatMinWidth;
|
||||
layoutStruct.minimumWidth = qMax(layoutStruct.minimumWidth, floatMinWidth);
|
||||
|
||||
// as floats in cells get added to the table's float list but must not affect
|
||||
// floats in other cells we must clear the list here.
|
||||
|
Loading…
Reference in New Issue
Block a user