mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 23:25:15 +00:00
Fixed insertion of 11th image from clipboard in SendFilesBox.
This commit is contained in:
@@ -401,10 +401,10 @@ void PreparedList::mergeToEnd(PreparedList &&other, bool cutToAlbumSize) {
|
|||||||
size_t(cutToAlbumSize ? kMaxAlbumCount : INT_MAX),
|
size_t(cutToAlbumSize ? kMaxAlbumCount : INT_MAX),
|
||||||
files.size() + other.files.size()));
|
files.size() + other.files.size()));
|
||||||
for (auto &file : other.files) {
|
for (auto &file : other.files) {
|
||||||
files.push_back(std::move(file));
|
|
||||||
if (cutToAlbumSize && files.size() == kMaxAlbumCount) {
|
if (cutToAlbumSize && files.size() == kMaxAlbumCount) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
files.push_back(std::move(file));
|
||||||
}
|
}
|
||||||
if (files.size() > 1 && files.size() <= kMaxAlbumCount) {
|
if (files.size() > 1 && files.size() <= kMaxAlbumCount) {
|
||||||
const auto badIt = ranges::find(
|
const auto badIt = ranges::find(
|
||||||
|
Reference in New Issue
Block a user