[QGIS Commit] r11037 - trunk/qgis/src/app/legend

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Jul 10 13:26:55 EDT 2009


Author: jef
Date: 2009-07-10 13:26:54 -0400 (Fri, 10 Jul 2009)
New Revision: 11037

Modified:
   trunk/qgis/src/app/legend/qgslegendlayer.cpp
Log:
don't show ranges for unique values in legend

Modified: trunk/qgis/src/app/legend/qgslegendlayer.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegendlayer.cpp	2009-07-10 11:49:38 UTC (rev 11036)
+++ trunk/qgis/src/app/legend/qgslegendlayer.cpp	2009-07-10 17:26:54 UTC (rev 11037)
@@ -346,7 +346,7 @@
       values += lw;
     }
     uv = ( *it )->upperValue();
-    if ( !uv.isEmpty() )
+    if ( !uv.isEmpty() && lw != uv )
     {
       values += " - ";
       values += uv;



More information about the QGIS-commit mailing list