27 lines
880 B
Diff
27 lines
880 B
Diff
From f48a2f15358bfe0797996ed11b49a6c2096b6371 Mon Sep 17 00:00:00 2001
|
|
From: fvogel <fvogelnew1@free.fr>
|
|
Date: Fri, 24 Aug 2018 21:43:21 +0000
|
|
Subject: [PATCH 294/693] Fix [3441086fff]: ttk::style layout with empty
|
|
-children silently disappears
|
|
|
|
---
|
|
generic/ttk/ttkLayout.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/generic/ttk/ttkLayout.c b/generic/ttk/ttkLayout.c
|
|
index ba2458989..924355aa6 100644
|
|
--- a/generic/ttk/ttkLayout.c
|
|
+++ b/generic/ttk/ttkLayout.c
|
|
@@ -702,6 +702,8 @@ Ttk_LayoutTemplate Ttk_ParseLayoutTemplate(Tcl_Interp *interp, Tcl_Obj *objPtr)
|
|
if (childSpec) {
|
|
tail->child = Ttk_ParseLayoutTemplate(interp, childSpec);
|
|
if (!tail->child) {
|
|
+ Tcl_SetObjResult(interp, Tcl_ObjPrintf("Empty -children value"));
|
|
+ Tcl_SetErrorCode(interp, "TTK", "VALUE", "LAYOUT", NULL);
|
|
goto error;
|
|
}
|
|
}
|
|
--
|
|
2.19.1
|
|
|