diff --git a/anabatic/src/AutoHorizontal.cpp b/anabatic/src/AutoHorizontal.cpp index 57ebafb3..f87c587b 100644 --- a/anabatic/src/AutoHorizontal.cpp +++ b/anabatic/src/AutoHorizontal.cpp @@ -405,6 +405,11 @@ namespace Anabatic { if (spinFlags & SegSourceBottom) setFlags( SegTargetBottom ); if (spinFlags & SegTargetTop ) setFlags( SegSourceTop ); if (spinFlags & SegTargetBottom) setFlags( SegSourceBottom ); + + unsigned int invalidatedFlags = _flags & (SegInvalidatedSource|SegInvalidatedTarget); + unsetFlags( SegInvalidatedSource|SegInvalidatedTarget ); + if (invalidatedFlags & SegInvalidatedSource) setFlags( SegInvalidatedTarget ); + if (invalidatedFlags & SegInvalidatedTarget) setFlags( SegInvalidatedSource ); } } diff --git a/anabatic/src/AutoVertical.cpp b/anabatic/src/AutoVertical.cpp index c049400c..9976ec1b 100644 --- a/anabatic/src/AutoVertical.cpp +++ b/anabatic/src/AutoVertical.cpp @@ -342,6 +342,11 @@ namespace Anabatic { if (spinFlags & SegSourceBottom) setFlags( SegTargetBottom ); if (spinFlags & SegTargetTop ) setFlags( SegSourceTop ); if (spinFlags & SegTargetBottom) setFlags( SegSourceBottom ); + + unsigned int invalidatedFlags = _flags & (SegInvalidatedSource|SegInvalidatedTarget); + unsetFlags( SegInvalidatedSource|SegInvalidatedTarget ); + if (invalidatedFlags & SegInvalidatedSource) setFlags( SegInvalidatedTarget ); + if (invalidatedFlags & SegInvalidatedTarget) setFlags( SegInvalidatedSource ); } }