[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Sep 14 10:50:15 UTC 2019
vcl/source/window/builder.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 8aca05e934c71f8562107a0fd81a991e8c8fe0b3
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Sep 13 08:29:52 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Sep 14 12:49:28 2019 +0200
assert for missing model in GtkTreeView
Change-Id: I48550a06d73c974d6637026abc90e1e4d74c4257
Reviewed-on: https://gerrit.libreoffice.org/78861
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index be9b46984300..f27665c40be5 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -2036,6 +2036,11 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
}
else if (name == "GtkTreeView")
{
+ if (!m_bLegacy)
+ {
+ assert(rMap.find(OString("model")) != rMap.end() && "GtkTreeView must have a model");
+ }
+
//window we want to apply the packing props for this GtkTreeView to
VclPtr<vcl::Window> xWindowForPackingProps;
//To-Do
More information about the Libreoffice-commits
mailing list