Warning, /graphics/krita/3rdparty/ext_qt/bug449779-Check-for-uninitialized-QDockAreaLayoutInfo.patch is written in an unsupported language. File is not indexed.

0001 From 2144627585b9c61e6659768510b21c285b796398 Mon Sep 17 00:00:00 2001
0002 From: Alvin Wong <alvinhochun@gmail.com>
0003 Date: Wed, 9 Mar 2022 15:12:54 +0800
0004 Subject: [PATCH] Check for uninitialized QDockAreaLayoutInfo
0005 
0006 QDockAreaLayoutItem::subinfo may be nullptr if a dock widget had just
0007 been docked with the docking animation still happening.
0008 ---
0009  src/widgets/widgets/qdockarealayout.cpp | 4 ++++
0010  1 file changed, 4 insertions(+)
0011 
0012 diff --git a/src/widgets/widgets/qdockarealayout.cpp b/src/widgets/widgets/qdockarealayout.cpp
0013 index 54504d124b..2ab70840aa 100644
0014 --- a/src/widgets/widgets/qdockarealayout.cpp
0015 +++ b/src/widgets/widgets/qdockarealayout.cpp
0016 @@ -1384,6 +1384,10 @@ QRect QDockAreaLayoutInfo::separatorRect(const QList<int> &path) const
0017      if (path.count() > 1) {
0018          const QDockAreaLayoutItem &item = item_list.at(index);
0019          Q_ASSERT(item.subinfo != 0);
0020 +        if (!item.subinfo) {
0021 +            qWarning("QDockAreaLayoutInfo::separatorRect: child item does not have subinfo!");
0022 +            return QRect();
0023 +        }
0024          return item.subinfo->separatorRect(path.mid(1));
0025      }
0026      return separatorRect(index);
0027 -- 
0028 2.24.1.windows.2
0029