@cornerstonejs/core 0.44.2 → 0.44.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "0.44.2",
3
+ "version": "0.44.3",
4
4
  "description": "",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -43,5 +43,5 @@
43
43
  "type": "individual",
44
44
  "url": "https://ohif.org/donate"
45
45
  },
46
- "gitHead": "45b5360196e59bfc62c1a73122dfa31a4b61b9ff"
46
+ "gitHead": "9e26b3fec44c546022e203ed7f5d5f5cc8346b10"
47
47
  }
@@ -20,6 +20,11 @@
20
20
  export default function invertRgbTransferFunction(
21
21
  rgbTransferFunction: any
22
22
  ): void {
23
+ // cut in case there is no function at all
24
+ if (!rgbTransferFunction) {
25
+ return;
26
+ }
27
+
23
28
  const size = rgbTransferFunction.getSize();
24
29
 
25
30
  for (let index = 0; index < size; index++) {