Przeglądaj źródła

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

Matthias Uiberacker 7 lat temu
rodzic
commit
867b058c67
1 zmienionych plików z 3 dodań i 3 usunięć
  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;