Use character pointer instead of string object (fixes #4034)
Credit to @josephd
This commit is contained in:
parent
40fe145213
commit
f26258668f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue