diff --git a/docling_core/types/doc/base.py b/docling_core/types/doc/base.py index 91ac44f..74daacc 100644 --- a/docling_core/types/doc/base.py +++ b/docling_core/types/doc/base.py @@ -150,7 +150,7 @@ def to_bottom_left_origin(self, page_height: float) -> "BoundingBox": """ if self.coord_origin == CoordOrigin.BOTTOMLEFT: - return self + return self.model_copy() elif self.coord_origin == CoordOrigin.TOPLEFT: return BoundingBox( l=self.l, @@ -167,7 +167,7 @@ def to_top_left_origin(self, page_height: float) -> "BoundingBox": """ if self.coord_origin == CoordOrigin.TOPLEFT: - return self + return self.model_copy() elif self.coord_origin == CoordOrigin.BOTTOMLEFT: return BoundingBox( l=self.l,