Improve frame thumbnail rendering

This commit is contained in:
alonso.torres 2021-05-12 14:44:35 +02:00 committed by Andrey Antukh
parent 37f9a5d9f2
commit 3656ab977b
10 changed files with 68 additions and 33 deletions

View file

@ -287,7 +287,7 @@ goog.scope(function() {
function moveRedLeft(branch) {
flipColors(branch);
if (isRed(branch.right.left)) {
if (branch.right && isRed(branch.right.left)) {
branch.right = rotateRight(branch.right);
branch = rotateLeft(branch);
flipColors(branch);