mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
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:
parent
5ff54e4af6
commit
a4675f56df
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user