Fix XXX is still touched after recompute in DPG

This commit is contained in:
WandererFan
2017-09-29 14:46:47 -04:00
committed by Yorik van Havre
parent d6a5672f89
commit 381a7375e7
5 changed files with 200 additions and 140 deletions

View File

@@ -113,7 +113,9 @@ void DrawView::checkScale(void)
void DrawView::onChanged(const App::Property* prop)
{
if (!isRestoring()) {
if (prop == &ScaleType) {
if (this->isDerivedFrom(TechDraw::DrawProjGroupItem::getClassTypeId())) {
//do nothing. DPGI/DPG handles itself
} else if (prop == &ScaleType) {
auto page = findParentPage();
if (ScaleType.isValue("Page")) {
Scale.setStatus(App::Property::ReadOnly,true);
@@ -141,8 +143,9 @@ void DrawView::onChanged(const App::Property* prop)
}
}
}
} else if (prop == &X || //nothing needs to be calculated, just the graphic needs to be shifted.
prop == &Y) {
}
if (prop == &X || //nothing needs to be calculated, just the graphic needs to be shifted.
prop == &Y) {
requestPaint();
}
}