router: fix compile error in DRAGGER
This commit is contained in:
parent
b67e5768a6
commit
2831c7d24c
|
@ -405,8 +405,8 @@ void DRAGGER::optimizeAndUpdateDraggedLine( LINE& aDragged, const LINE& aOrig, c
|
||||||
//Dbg()->AddBox( *affectedArea, 2 );
|
//Dbg()->AddBox( *affectedArea, 2 );
|
||||||
optimizer.SetRestrictArea( *affectedArea );
|
optimizer.SetRestrictArea( *affectedArea );
|
||||||
optimizer.Optimize( &aDragged );
|
optimizer.Optimize( &aDragged );
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
OPT_BOX2I optArea = *aDragged.ChangedArea( &aOrig );
|
OPT_BOX2I optArea = *aDragged.ChangedArea( &aOrig );
|
||||||
if( optArea )
|
if( optArea )
|
||||||
|
@ -497,6 +497,7 @@ bool DRAGGER::dragWalkaround( const VECTOR2I& aP )
|
||||||
|
|
||||||
if( ok )
|
if( ok )
|
||||||
{
|
{
|
||||||
|
//Dbg()->AddLine( origLine.CLine(), 4, 100000 );
|
||||||
m_lastNode->Remove( origLine );
|
m_lastNode->Remove( origLine );
|
||||||
optimizeAndUpdateDraggedLine( draggedWalk, origLine, aP );
|
optimizeAndUpdateDraggedLine( draggedWalk, origLine, aP );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue