tiny useless cleaning about the recently modified del_tags

This commit is contained in:
Ali El Gariani 2007-07-21 20:34:35 +00:00
parent badabe330f
commit cbb32c8be1
2 changed files with 2 additions and 2 deletions

View file

@ -747,7 +747,7 @@ std::string make_text_ellipsis(const std::string &text, int font_size, int max_w
{
static const std::string ellipsis = "...";
if(line_width(with_tags ? text : font::del_tags(text), font_size) <= max_width)
if(line_width(with_tags ? text : del_tags(text), font_size) <= max_width)
return text;
if(line_width(ellipsis, font_size) > max_width)
return "";

View file

@ -99,7 +99,7 @@ SDL_Rect line_size(const std::string& line, int font_size, int style=TTF_STYLE_N
///
/// If the text excedes the specified max width, end it with an ellipsis (...)
/// The del_tags can probably always be set to false
/// The with_tags can probably always be set to false
///
std::string make_text_ellipsis(const std::string& text, int font_size, int max_width, bool with_tags = true);