Pārlūkot izejas kodu

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

Matthias Uiberacker 7 gadi atpakaļ
vecāks
revīzija
867b058c67
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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;