Skip to content

Commit

Permalink
Remove excessive font declaration (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakhnik committed Nov 3, 2022
1 parent ee16734 commit 4f40c48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.0] - 2022-09-17
## [0.1.0] - 2022-11-03

### Added

Expand Down
3 changes: 1 addition & 2 deletions src/GGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void GGrid::_UpdateLabels(Session *session)
auto it = _textures.find(chunk);
if (it == _textures.end())
{
std::string text{"<span font=\"" + _font.GetFamily() + "\">"};
std::string text;
for (const auto &word : chunk->words)
{
auto it = _pango_styles.find(word.hl_id);
Expand All @@ -439,7 +439,6 @@ void GGrid::_UpdateLabels(Session *session)
: it->second;
text += "<span" + pango_style + ">" + XmlEscape(word.text) + "</span>";
}
text += "</span>";
Texture t{row, Gtk::Label::new_("").g_obj()};
t.label.set_markup(text.c_str());
t.label.set_sensitive(false);
Expand Down

0 comments on commit 4f40c48

Please sign in to comment.