# HG changeset patch # User Alpar Juttner # Date 2008-04-03 12:26:19 # Node ID e99385bca9fea1e75d8b44b74fed289001fa8791 # Parent 7cd965d2257f5eeda2862677d84520cd6d864c97 Change the order of the Palette constructor parameters diff --git a/demo/graph_to_eps_demo.cc b/demo/graph_to_eps_demo.cc --- a/demo/graph_to_eps_demo.cc +++ b/demo/graph_to_eps_demo.cc @@ -42,7 +42,7 @@ int main() { Palette palette; - Palette paletteW(-1,true); + Palette paletteW(true); ListDigraph g; typedef ListDigraph::Node Node; diff --git a/lemon/color.h b/lemon/color.h --- a/lemon/color.h +++ b/lemon/color.h @@ -119,7 +119,7 @@ ///\param have_white indicates whether white is amongst the ///provided color (\c true) or not (\c false). If it is true, ///white will be assigned to \c 0. - Palette(int num=-1,bool have_white=false) + Palette(bool have_white=false,int num=-1) { if (num==0) return; do {