AutoScaling Fixes for non-DVP objects
This commit is contained in:
committed by
Yorik van Havre
parent
a5a20701a7
commit
70b5c241d1
@@ -736,7 +736,15 @@ double DrawViewPart::getBoxY(void) const
|
||||
|
||||
QRectF DrawViewPart::getRect() const
|
||||
{
|
||||
QRectF result(0.0,0.0,getBoxX(),getBoxY()); //this is from GO and is already scaled
|
||||
double x = getBoxX();
|
||||
double y = getBoxY();
|
||||
QRectF result;
|
||||
if (std::isinf(x) || std::isinf(y)) {
|
||||
//geometry isn't created yet. return an arbitrary rect.
|
||||
result = QRectF(0.0,0.0,100.0,100.0);
|
||||
} else {
|
||||
result = QRectF(0.0,0.0,getBoxX(),getBoxY()); //this is from GO and is already scaled
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user