Changeset 963 for trunk/lib/File.cc


Ignore:
Timestamp:
Dec 9, 2009, 3:58:28 AM (13 years ago)
Author:
Peter Johansson
Message:

fixes #420 - use same color in blame output as in plots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r938 r963  
    2323
    2424#include "Alias.h"
     25#include "Colors.h"
    2526#include "Configuration.h"
    2627#include "Date.h"
     
    290291      hs << Date(blame.date())("%d %b %y");
    291292      os << "</font></td>\n<td class=\"author\">";
    292       std::string author_color =
    293         Configuration::instance().author_str_color(blame.author());
    294       if (!author_color.empty())
    295         os << "<font color=\"#" << author_color << "\">";
     293      const std::string& author_color =
     294        Colors::instance().color_str(blame.author());
     295      assert(!author_color.empty());
     296      os << "<font color=\"#" << author_color << "\">";
    296297      hs << blame.author();
    297298      os << "</td>\n<td class=\"";
Note: See TracChangeset for help on using the changeset viewer.