Formatting.

This commit is contained in:
Jeff Young 2024-03-16 12:00:03 +00:00
parent a4062ade3d
commit 116908c088
2 changed files with 15 additions and 14 deletions

View File

@ -211,21 +211,22 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
if( schItem->IsSelected() )
selectedModified = true;
auto updateConnectivityFlag = [&, this]()
{
if( schItem->IsConnectable() )
{
dirtyConnectivity = true;
auto updateConnectivityFlag =
[&]()
{
if( schItem->IsConnectable() )
{
dirtyConnectivity = true;
// Do a local clean up if there are any connectable objects in the commit.
if( connectivityCleanUp == NO_CLEANUP )
connectivityCleanUp = LOCAL_CLEANUP;
// Do a local clean up if there are any connectable objects in the commit.
if( connectivityCleanUp == NO_CLEANUP )
connectivityCleanUp = LOCAL_CLEANUP;
// Do a full rebauild of the connectivity if there is a sheet in the commit.
if( schItem->Type() == SCH_SHEET_T )
connectivityCleanUp = GLOBAL_CLEANUP;
}
};
// Do a full rebauild of the connectivity if there is a sheet in the commit.
if( schItem->Type() == SCH_SHEET_T )
connectivityCleanUp = GLOBAL_CLEANUP;
}
};
switch( changeType )
{

View File

@ -457,7 +457,7 @@ public:
/**
* Check if \a aItem has connectivity changes against this object.
*
* This provides granular per object connectivity change testing to prevent the need
* This provides granular per object connectivity change testing to prevent the need
* to rebuild the #CONNECTION_GRAPH when object properties that have nothing to do with
* the schematic connectivity changes i.e. color, thickness, fill type. etc.
*