Fix painting of detail highlight

- painting of the detail highlight in the base
  view was being delayed until the base view
  was updated. It is now drawn when detail
  changes.
This commit is contained in:
wandererfan
2018-03-02 12:57:18 -05:00
committed by Yorik van Havre
parent eee9a85716
commit f0ebddc2cc
2 changed files with 3 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ DrawViewDetail::DrawViewDetail()
ADD_PROPERTY_TYPE(Reference ,("1"),dgroup,App::Prop_None,"An identifier for this detail");
getParameters();
m_fudge = 1.1;
m_fudge = 1.01;
}
DrawViewDetail::~DrawViewDetail()
@@ -274,6 +274,7 @@ App::DocumentObjectExecReturn *DrawViewDetail::execute(void)
}
requestPaint();
dvp->requestPaint();
return App::DocumentObject::StdReturn;
}

View File

@@ -79,7 +79,7 @@ QGIMatting::QGIMatting() :
void QGIMatting::draw()
{
prepareGeometryChange();
double radiusFudge = 1.15; //keep slightly larger than fudge in App/DVDetail to prevent bleed through
double radiusFudge = 1.1; //keep slightly larger than fudge in App/DVDetail to prevent bleed through
double outerRadius = m_radius * radiusFudge;
m_width = outerRadius;
m_height = outerRadius;