Переглянути джерело

make Object.getSize final (should override getBoundsRec)

Nicolas Cannasse 4 роки тому
батько
коміт
07d8ea7601
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      h2d/Object.hx

+ 1 - 1
h2d/Object.hx

@@ -163,7 +163,7 @@ class Object #if (domkit && !domkit_heaps) implements domkit.Model<h2d.Object> #
 		the full glyphs size whereas `getSize` will ignore the pixels under the baseline.
 		the full glyphs size whereas `getSize` will ignore the pixels under the baseline.
 		@param out An optional bounds instance to fill. Allocates new Bounds instance and returns it if not set.
 		@param out An optional bounds instance to fill. Allocates new Bounds instance and returns it if not set.
 	**/
 	**/
-	public function getSize( ?out : h2d.col.Bounds ) : h2d.col.Bounds {
+	public final function getSize( ?out : h2d.col.Bounds ) : h2d.col.Bounds {
 		if( out == null ) out = new h2d.col.Bounds() else out.empty();
 		if( out == null ) out = new h2d.col.Bounds() else out.empty();
 		syncPos();
 		syncPos();
 		getBoundsRec(parent, out, true);
 		getBoundsRec(parent, out, true);