From 68d01ffe708b4f275be8c29a38aa25a365553d37 Mon Sep 17 00:00:00 2001 From: ErrorFlynn Date: Tue, 12 Mar 2019 15:58:01 -0400 Subject: [PATCH] fix: tooltip window doesn't have tree scheme & typeface (issue #405) The treebox tooltip window is not initialized with the treebox scheme, which causes a crash in color_proxy::operator color(). Additionally, the tooltip window also uses a default font. --- source/gui/widgets/treebox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/gui/widgets/treebox.cpp b/source/gui/widgets/treebox.cpp index 1d1a6c13..5fb97c7b 100644 --- a/source/gui/widgets/treebox.cpp +++ b/source/gui/widgets/treebox.cpp @@ -963,6 +963,8 @@ namespace nana if(text_r.right() > visible_w_pixels()) { node_state.tooltip = new tooltip_window(data.widget_ptr->handle(), text_r); + API::dev::set_scheme(node_state.tooltip->handle(), API::dev::get_scheme(data.widget_ptr->handle())); + node_state.tooltip->typeface(data.widget_ptr->typeface()); node_attribute node_attr; assign_node_attr(node_attr, node_state.pointed);