QHeaderView: skip dividing by 1, rather pointless
Change-Id: I9a63810475d1f17d65e91c1f4d805a7e564ba686 Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>bb10
parent
f2eb7b0204
commit
8a678c3464
|
|
@ -4045,7 +4045,7 @@ bool QHeaderViewPrivate::read(QDataStream &in)
|
|||
QVector<SectionItem> newSectionItems;
|
||||
for (int u = 0; u < sectionItemsIn.count(); ++u) {
|
||||
int count = sectionItemsIn.at(u).tmpDataStreamSectionCount;
|
||||
if (count > 0)
|
||||
if (count > 1)
|
||||
sectionItemsIn[u].size /= count;
|
||||
for (int n = 0; n < count; ++n)
|
||||
newSectionItems.append(sectionItemsIn[u]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue