浏览代码

fix (BoundingBox): added missing initialization of objects in constructor to fix silent failing of rendering (#130)

Matthias Uiberacker 7 年之前
父节点
当前提交
867b058c67
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/MusicalScore/Graphical/BoundingBox.ts

+ 3 - 3
src/MusicalScore/Graphical/BoundingBox.ts

@@ -14,9 +14,9 @@ export class BoundingBox {
     protected absolutePosition: PointF2D = new PointF2D();
     protected relativePosition: PointF2D = new PointF2D();
     protected size: SizeF2D = new SizeF2D();
-    protected marginSize: SizeF2D;
-    protected upperLeftCorner: PointF2D;
-    protected upperLeftMarginCorner: PointF2D;
+    protected marginSize: SizeF2D = new SizeF2D();
+    protected upperLeftCorner: PointF2D = new PointF2D();
+    protected upperLeftMarginCorner: PointF2D = new PointF2D();
     protected borderLeft: number = 0;
     protected borderRight: number = 0;
     protected borderTop: number = 0;