[Commits] r1883 - core/trunk/geoext/lib/GeoExt/data

commits at geoext.org commits at geoext.org
Thu Feb 11 19:07:46 CET 2010


Author: ahocevar
Date: 2010-02-11 19:07:46 +0100 (Thu, 11 Feb 2010)
New Revision: 1883

Modified:
   core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
Log:
encode legend items that are not hidden, as oposed to ones that are visible. r=sbenthall (closes #220)


Modified: core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/data/PrintProvider.js	2010-02-11 16:17:13 UTC (rev 1882)
+++ core/trunk/geoext/lib/GeoExt/data/PrintProvider.js	2010-02-11 18:07:46 UTC (rev 1883)
@@ -340,7 +340,7 @@
         if(options.legend) {
             var encodedLegends = [];
             options.legend.items.each(function(cmp) {
-                if(cmp.isVisible()) {
+                if(!cmp.hidden) {
                     var encFn = this.encoders.legends[cmp.getXType()];
                     encodedLegends = encodedLegends.concat(
                         encFn.call(this, cmp));



More information about the Commits mailing list