[Commits] r2464 - core/trunk/geoext/lib/GeoExt/data
commits at geoext.org
commits at geoext.org
Wed Oct 13 15:25:34 CEST 2010
Author: bartvde
Date: 2010-10-13 15:25:34 +0200 (Wed, 13 Oct 2010)
New Revision: 2464
Modified:
core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
Log:
protect the print provider against empty legend panel, p=fvanderbiest, r=me (closes #364)
Modified: core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/data/PrintProvider.js 2010-10-13 11:18:08 UTC (rev 2463)
+++ core/trunk/geoext/lib/GeoExt/data/PrintProvider.js 2010-10-13 13:25:34 UTC (rev 2464)
@@ -425,7 +425,7 @@
});
}
var encodedLegends = [];
- legend.items.each(function(cmp) {
+ legend.items && legend.items.each(function(cmp) {
if(!cmp.hidden) {
var encFn = this.encoders.legends[cmp.getXType()];
encodedLegends = encodedLegends.concat(
More information about the Commits
mailing list