mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- do the unlink properly when replacing a clip node.
This commit is contained in:
parent
98258e0bb2
commit
0cfe6bbed3
1 changed files with 3 additions and 4 deletions
|
@ -404,11 +404,10 @@ void Clipper::AddWindowRange(int start, int end, float topclip, float bottomclip
|
|||
// if the new window is closed, we must remove the old range and insert a closed one, so that it gets merged with its neighbours.
|
||||
if (mtopclip <= mbottomclip)
|
||||
{
|
||||
auto temp = node;
|
||||
node = node->next;
|
||||
RemoveRange(temp);
|
||||
auto prev = node->prev;
|
||||
RemoveRange(node);
|
||||
auto mynode = NewRange(nodestart, nodeend, 0, 0);
|
||||
InsertRange(node->prev, mynode);
|
||||
InsertRange(prev, mynode);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue