Connect Engine: fixed pango version of get_colors displaying incorrect values
This commit is contained in:
parent
0e2f05151f
commit
066c34ae5e
2 changed files with 4 additions and 4 deletions
|
@ -1409,12 +1409,12 @@ std::vector<std::string> side_engine::get_colors() const
|
|||
return res;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> side_engine::get_colors_pango() const
|
||||
std::vector<std::pair<std::string, std::string>> side_engine::get_colors_pango() const
|
||||
{
|
||||
std::map<std::string, std::string> res;
|
||||
std::vector<std::pair<std::string, std::string>> res;
|
||||
for(int i = 0; i < num_colors(); ++i) {
|
||||
const std::string color = get_color(i);
|
||||
res.emplace(color, mp::get_color_string_pango(color));
|
||||
res.push_back({color, mp::get_color_string_pango(color)});
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -225,7 +225,7 @@ public:
|
|||
flg_manager& flg() { return flg_; }
|
||||
|
||||
std::vector<std::string> get_colors() const;
|
||||
std::map<std::string, std::string> get_colors_pango() const;
|
||||
std::vector<std::pair<std::string, std::string>> get_colors_pango() const;
|
||||
std::string get_color(int index = -1) const;
|
||||
int num_colors() const;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue