Use character pointer instead of string object (fixes #4034)

Credit to @josephd
This commit is contained in:
Wedge009 2019-05-17 17:00:27 +10:00
parent 40fe145213
commit f26258668f

View file

@ -2956,10 +2956,10 @@ void display::refresh_report(const std::string& report_name, const config * new_
}
skip_element:
t = elements.front()["tooltip"].t_str().base_str();
t = elements.front()["tooltip"].t_str().c_str();
if (!t.empty()) {
if (!used_ellipsis) {
tooltips::add_tooltip(area, t, elements.front()["help"].t_str().base_str());
tooltips::add_tooltip(area, t, elements.front()["help"].t_str().c_str());
} else {
// Collect all tooltips for the ellipsis.
// TODO: need a better separator