https://bugs.kde.org/show_bug.cgi?id=496874

--- Comment #1 from miko <mickael.serg...@free.fr> ---
it seems issue come from wrong index used to stored size, view index is used
instead of logicial
Here a possible fix:
diff --git a/src/libs/ui/kptviewbase.cpp b/src/libs/ui/kptviewbase.cpp
index ceff8fe3..82399d97 100644
--- a/src/libs/ui/kptviewbase.cpp
+++ b/src/libs/ui/kptviewbase.cpp
@@ -1790,7 +1790,7 @@ void TreeViewBase::saveContext(const QMetaEnum &map,
QDomElement &element, bool
                 QString n = QLatin1String(map.key(h->logicalIndex(i)));
                 if (! n.isEmpty()) {
                     e.setAttribute(QStringLiteral("section-%1").arg(i), n);
-                    e.setAttribute(QStringLiteral("size-%1").arg(i),
h->sectionSize(h->logicalIndex(i)));
+                   
e.setAttribute(QStringLiteral("size-%1").arg(h->logicalIndex(i)),
h->sectionSize(h->logicalIndex(i)));
                 }
             }
         }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to