added debug to the layer name beautification code

git-svn-id: http://svn.osgeo.org/qgis/trunk@834 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-02-13 22:49:17 +00:00
parent 5ff54e4af6
commit a4675f56df

View File

@ -135,9 +135,15 @@ m_rendererDialog(0)
if (providerKey == "postgres")
{
#ifdef DEBUG
std::cout << "Beautifying layer name " << layerTitle << std::endl;
#endif
// adjust the display name for postgres layers
layerTitle = layerTitle.mid(layerTitle.find(".") + 1);
layerTitle = layerTitle.left(layerTitle.find("("));
#ifdef DEBUG
std::cout << "Beautified name is " << layerTitle << std::endl;
#endif
}
// upper case the first letter of the layer name
layerTitle = layerTitle.left(1).upper() + layerTitle.mid(1);