Canvas::path: early return for descendant changes

The ‘rect’ attributes of Path were before the early-return when the
change is for a descendant node.
This commit is contained in:
James Turner
2018-06-26 08:26:57 +01:00
parent 9553a604ac
commit 2e3cace7f9

View File

@@ -863,6 +863,9 @@ namespace canvas
//----------------------------------------------------------------------------
void Path::childChanged(SGPropertyNode* child)
{
if( child->getParent() != _node )
return;
const std::string& name = child->getNameString();
const std::string &prName = child->getParent()->getNameString();
@@ -892,9 +895,6 @@ namespace canvas
return;
}
if( child->getParent() != _node )
return;
if( name == "cmd" )
_attributes_dirty |= CMDS;
else if( name == "coord" )