Automatically close unclosed contours.

This commit is contained in:
levlam 2020-12-16 16:04:27 +03:00
parent 7fc2e783ed
commit 3681da21d8
3 changed files with 7 additions and 3 deletions

View File

@ -903,8 +903,8 @@ void GroupCallManager::on_update_group_call_participants(
} }
auto &pending_updates = group_call_participants->pending_updates_[version]; auto &pending_updates = group_call_participants->pending_updates_[version];
if (!pending_updates.empty()) { if (!pending_updates.empty()) {
LOG(ERROR) << "Receive duplicate updateGroupCallParticipants with version " << version << " in " LOG(INFO) << "Receive duplicate updateGroupCallParticipants with version " << version << " in "
<< input_group_call_id; << input_group_call_id;
sync_group_call_participants(input_group_call_id); sync_group_call_participants(input_group_call_id);
return; return;
} }

View File

@ -1498,6 +1498,10 @@ vector<td_api::object_ptr<td_api::closedVectorPath>> StickersManager::get_sticke
make_point(last_end_control_point_x, last_end_control_point_y), make_point(x, y))); make_point(last_end_control_point_x, last_end_control_point_y), make_point(x, y)));
break; break;
} }
case 'm':
case 'M':
pos--;
// falltrough
case 'z': case 'z':
case 'Z': case 'Z':
if (x != start_x || y != start_y) { if (x != start_x || y != start_y) {

View File

@ -472,7 +472,7 @@ class SslStreamImpl {
return 0; return 0;
} }
} }
/* fall through */ /* fallthrough */
default: default:
LOG(DEBUG) << "SSL_ERROR Default"; LOG(DEBUG) << "SSL_ERROR Default";
return create_openssl_error(1, "SSL error "); return create_openssl_error(1, "SSL error ");