Set a missing bbox.defined flag.

This commit is contained in:
bubnikv 2017-09-13 10:28:02 +02:00
parent 6b2b279889
commit 83b5b9e660
2 changed files with 2 additions and 1 deletions

View file

@ -30,7 +30,7 @@ class BoundingBoxBase
void scale(double factor);
PointClass size() const;
double radius() const;
void translate(coordf_t x, coordf_t y) { this->min.translate(x, y); this->max.translate(x, y); }
void translate(coordf_t x, coordf_t y) { assert(this->defined); this->min.translate(x, y); this->max.translate(x, y); }
void translate(const Pointf &pos) { this->translate(pos.x, pos.y); }
void offset(coordf_t delta);
PointClass center() const;