Преглед изворни кода

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;