Add requestPaint formerly in DrawView::execute
This commit is contained in:
@@ -120,7 +120,8 @@ QRectF DrawViewAnnotation::getRect() const
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *DrawViewAnnotation::execute(void)
|
||||
{
|
||||
{
|
||||
requestPaint();
|
||||
return TechDraw::DrawView::execute();
|
||||
}
|
||||
|
||||
|
||||
@@ -107,8 +107,6 @@ App::DocumentObjectExecReturn *DrawViewClip::execute(void)
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
touch();
|
||||
|
||||
std::vector<App::DocumentObject*> children = Views.getValues();
|
||||
for (std::vector<App::DocumentObject*>::iterator it = children.begin(); it != children.end(); ++it) {
|
||||
if ((*it)->getTypeId().isDerivedFrom(DrawView::getClassTypeId())) {
|
||||
@@ -116,7 +114,8 @@ App::DocumentObjectExecReturn *DrawViewClip::execute(void)
|
||||
view->touch();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
requestPaint();
|
||||
return DrawView::execute();
|
||||
}
|
||||
|
||||
|
||||
@@ -172,8 +172,6 @@ App::DocumentObjectExecReturn *DrawViewDetail::execute(void)
|
||||
if (partTopo.getShape().IsNull())
|
||||
return new App::DocumentObjectExecReturn("Linked shape object is empty");
|
||||
|
||||
(void) DrawView::execute(); //make sure Scale is up to date
|
||||
|
||||
Base::Vector3d anchor = AnchorPoint.getValue(); //this is a 2D point
|
||||
anchor = Base::Vector3d(anchor.x,anchor.y, 0.0);
|
||||
double radius = getFudgeRadius();
|
||||
@@ -272,6 +270,7 @@ App::DocumentObjectExecReturn *DrawViewDetail::execute(void)
|
||||
return new App::DocumentObjectExecReturn(e1.GetMessageString());
|
||||
}
|
||||
|
||||
requestPaint();
|
||||
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
@@ -214,8 +214,6 @@ App::DocumentObjectExecReturn *DrawViewSection::execute(void)
|
||||
if (partTopo.getShape().IsNull())
|
||||
return new App::DocumentObjectExecReturn("Linked shape object is empty");
|
||||
|
||||
(void) DrawView::execute(); //make sure Scale is up to date
|
||||
|
||||
gp_Pln pln = getSectionPlane();
|
||||
gp_Dir gpNormal = pln.Axis().Direction();
|
||||
Base::Vector3d orgPnt = SectionOrigin.getValue();
|
||||
@@ -303,6 +301,7 @@ App::DocumentObjectExecReturn *DrawViewSection::execute(void)
|
||||
return new App::DocumentObjectExecReturn(e2.GetMessageString());
|
||||
}
|
||||
|
||||
requestPaint();
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,8 @@ App::DocumentObjectExecReturn *DrawViewSpreadsheet::execute(void)
|
||||
return new App::DocumentObjectExecReturn("Empty cell value");
|
||||
|
||||
Symbol.setValue(getSheetImage());
|
||||
|
||||
|
||||
requestPaint();
|
||||
return TechDraw::DrawView::execute();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user