Changeset 916
- Timestamp:
- Nov 30, 2009, 9:02:40 PM (14 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Graph.h
r902 r916 59 59 ~Graph(void); 60 60 61 static bool date_xticks(void);62 63 61 /** 64 62 \brief Set the pen colour to use in next drawing call 65 63 */ 66 64 void current_colour(unsigned char r, unsigned char g, unsigned char b); 65 66 static bool date_xticks(void); 67 67 68 68 /** … … 111 111 private: 112 112 113 // Copy constructor not implemented 114 Graph(const Graph&); 115 113 116 struct legend_data { 114 117 std::string label; -
trunk/lib/Makefile.am
r909 r916 33 33 34 34 noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h \ 35 Co mmitment.h Configuration.h css.h \35 Colours.h Commitment.h Configuration.h css.h \ 36 36 Date.h Directory.h File.h first_page.h Functor.h \ 37 37 Graph.h \ … … 43 43 44 44 libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \ 45 ClassicStats.cc \45 ClassicStats.cc Colours.cc \ 46 46 Commitment.cc Configuration.cc \ 47 47 css.cc Date.cc Directory.cc File.cc first_page.cc\ -
trunk/lib/Stats.cc
r884 r916 24 24 #include "Stats.h" 25 25 26 #include "Colours.h" 26 27 #include "Functor.h" 27 28 #include "Graph.h" … … 385 386 std::sort(author_cont.begin(), author_cont.end(), compare); 386 387 387 size_t plotno=author_cont.size();388 388 vec_type::iterator end(author_cont.end()); 389 389 for (vec_type::iterator i(author_cont.begin()); i!=end; ++i) { 390 // the RGB values below must be replaced ... seg fault will 391 // happen! plotno will probably become unused when below row is 392 // removed or fixed. 393 gp.current_colour(25*plotno,255-25*plotno,75); 390 unsigned char r, g, b; 391 Colours::instance().get_colour(i->first,r,g,b); 392 gp.current_colour(r,g,b); 394 393 gp.plot(i->second, i->first, get_back(*stat, i->first)); 395 394 }
Note: See TracChangeset
for help on using the changeset viewer.