summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-06-24 07:29:10 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-06-24 07:29:10 (GMT)
commit6f089ea514ff3df094e4ab9e95c4d027b2b20993 (patch)
tree4a0c27554e508949ad846699a9f19af3769dd75b
parent43b93b55f3352f8ee47c3738cd293fe3bc48a661 (diff)
parentdbc1568284cbf6070299d73e6a1775405a632f73 (diff)
downloadtk-6f089ea514ff3df094e4ab9e95c4d027b2b20993.zip
tk-6f089ea514ff3df094e4ab9e95c4d027b2b20993.tar.gz
tk-6f089ea514ff3df094e4ab9e95c4d027b2b20993.tar.bz2
Fix [2f92166f6f]: Crash setting -foreground to empty string in a ttk::theme.
-rw-r--r--generic/ttk/ttkTreeview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index 4494a65..11de5e0 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -1922,8 +1922,9 @@ static Ttk_Layout TreeviewGetLayout(
if ((objPtr = Ttk_QueryOption(treeLayout, "-rowheight", 0))) {
(void)Tk_GetPixelsFromObj(NULL, tv->core.tkwin, objPtr, &tv->tree.rowHeight);
- tv->tree.rowHeight = MAX(tv->tree.rowHeight, 1);
}
+ tv->tree.rowHeight = MAX(tv->tree.rowHeight, 1);
+
if ((objPtr = Ttk_QueryOption(treeLayout, "-columnseparatorwidth", 0))) {
(void)Tk_GetPixelsFromObj(NULL, tv->core.tkwin, objPtr, &tv->tree.colSeparatorWidth);
}