summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiteshjha2016-07-11 13:06:19 +0530
committerjiteshjha2016-07-11 13:06:19 +0530
commit7ba307bafe45590dc164feff98f00086077e26f3 (patch)
tree327c10b0313be3b21d8f19ee7e890307123aac8a
parent2b8ff4319806419bf796a2b40ade9df6676cde18 (diff)
downloadxcos-on-web-7ba307bafe45590dc164feff98f00086077e26f3.tar.gz
xcos-on-web-7ba307bafe45590dc164feff98f00086077e26f3.tar.bz2
xcos-on-web-7ba307bafe45590dc164feff98f00086077e26f3.zip
Data Structures style error
-rw-r--r--index.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/index.html b/index.html
index 554ff15..b8726c3 100644
--- a/index.html
+++ b/index.html
@@ -790,7 +790,12 @@
{
var stylesheet = graph.getStylesheet();
var style = stylesheet.styles[cell.value.getAttribute('style')];
- var displayedLabel = style['displayedLabel'];
+ var displayedLabel = null;
+
+ if(style != null) {
+ displayedLabel = style['displayedLabel'];
+ }
+
if(displayedLabel != null) {
var displayParameter = cell.blockInstance.instance.displayParameter;
for(i in displayParameter) {