瀏覽代碼

Column name fix

Neal Wilson 11 年之前
父節點
當前提交
f20cb16fc6
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13
    1
      config/Windows/productionroaster.xml

+ 13
- 1
config/Windows/productionroaster.xml 查看文件

@@ -842,12 +842,24 @@
842 842
 				log.newAnnotation("End", 1, lc);
843 843
             }
844 844
         });
845
+		var columnName = function(c) {
846
+			var visibleColumns = 0;
847
+			for(var i = 0; i < channels.length; i++) {
848
+				if(channelVisibility[i]) {
849
+					visibleColumns++;
850
+				}
851
+				if(c == visibleColumns - 1) {
852
+					return columnNames[i];
853
+				}
854
+			}
855
+			return "";
856
+		};
845 857
 		window.postLoadColumnSetup = function(c) {
846 858
 			for(var i = 0; i < adapters.length; i++)
847 859
 			{
848 860
 				adapters[i].setColumn(c + i + 1);
849 861
 				zeroemitters[i].setColumn(c + i + 1);
850
-				log.setHeaderData(c + i + 1, columnNames[i]);
862
+				log.setHeaderData(c + i + 1, columnName(i));
851 863
 			}
852 864
 			log.setHeaderData(c + columnNames.length + 1 - channelSkip, "Note");
853 865
             stop.setTemperatureColumn(c + 1);

Loading…
取消
儲存