Mercurial > hg > svgui
diff layer/SingleColourLayer.cpp @ 376:e1a9e478b7f2
* juggle some files around in order to free audioio, base, and system libraries
from dependency on QtGui
author | Chris Cannam |
---|---|
date | Wed, 12 Mar 2008 17:42:56 +0000 |
parents | 06360ed99cd1 |
children | f4960f8ce798 |
line wrap: on
line diff
--- a/layer/SingleColourLayer.cpp Wed Mar 12 14:40:18 2008 +0000 +++ b/layer/SingleColourLayer.cpp Wed Mar 12 17:42:56 2008 +0000 @@ -14,7 +14,7 @@ */ #include "SingleColourLayer.h" -#include "base/ColourDatabase.h" +#include "ColourDatabase.h" #include "view/View.h" #include <iostream> @@ -106,7 +106,10 @@ int value) const { if (name == "Colour") { - return Layer::getPropertyValueLabel(name, value); + ColourDatabase *db = ColourDatabase::getInstance(); + if (value >= 0 && size_t(value) < db->getColourCount()) { + return db->getColourName(value); + } } return tr("<unknown>"); }