Commits

Luke Plant committed c09c8ff

Fixed bug which occurred when new heading was added which wasn't present in document when loaded

Comments (0)

Files changed (1)

semanticeditor/media/semanticeditor/javascript/wymeditor/plugins/semantic/wymeditor.semantic.js

     var headingIndex = parseInt(selected, 10);
     var heading = this.stored_headings[headingIndex][1];
     var styles = this.presentation_info[heading];
+    if (styles == null) {
+	styles = new Array();
+	this.presentation_info[heading] = styles;
+    }
     this.optsbox.find("input").each(
 	function(i, input) {
 	    // Set state