Skip to content

Commit

Permalink
Merge pull request #34160 from ZhilkinSerg/fix-interface-2019-09-22
Browse files Browse the repository at this point in the history
Fix UI regressions (2019-09-22)
  • Loading branch information
KorGgenT authored Sep 21, 2019
2 parents 178117c + 886dabb commit 168d578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/inventory_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ std::vector<std::string> inventory_selector::get_stats() const
std::array<size_t, num_stats> widths;
// Add first cells and spaces after them.
for( size_t i = 0; i < stats.size(); ++i ) {
lines[i] += string_format( "%d", stats[i][0] ) + " ";
lines[i] += string_format( "%s", stats[i][0] ) + " ";
}
// Now add the rest of the cells and align them to the right.
for( size_t j = 1; j < stats.front().size(); ++j ) {
Expand All @@ -1458,7 +1458,7 @@ std::vector<std::string> inventory_selector::get_stats() const
if( max_w > widths[i] ) {
lines[i] += std::string( max_w - widths[i], ' ' );
}
lines[i] += string_format( "%d", stats[i][j] );
lines[i] += string_format( "%s", stats[i][j] );
}
}
// Construct the final result.
Expand Down
2 changes: 1 addition & 1 deletion src/main_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void main_menu::print_menu_items( const catacurses::window &w_in,

std::string temp = shortcut_text( c_white, vItems[i] );
if( iSel == i ) {
text += string_format( "[%s]", colorize( remove_color_tags( temp ), c_white ) );
text += string_format( "[%s]", colorize( remove_color_tags( temp ), h_white ) );
} else {
text += string_format( "[%s]", temp );
}
Expand Down

0 comments on commit 168d578

Please sign in to comment.