Fix crash in non-clickable spoilers.
This commit is contained in:
parent
1a9c4162cc
commit
4d1a5686a7
1 changed files with 4 additions and 2 deletions
|
|
@ -373,8 +373,10 @@ void String::ExtendedWrap::adjustFrom(const ExtendedWrap *other) {
|
||||||
reinterpret_cast<String*>(otherText + raw(this) - raw(other)));
|
reinterpret_cast<String*>(otherText + raw(this) - raw(other)));
|
||||||
};
|
};
|
||||||
if (data) {
|
if (data) {
|
||||||
if (data->spoiler) {
|
if (const auto spoiler = data->spoiler.get()) {
|
||||||
adjust(data->spoiler->link);
|
if (spoiler->link) {
|
||||||
|
adjust(spoiler->link);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (auto "e : data->quotes) {
|
for (auto "e : data->quotes) {
|
||||||
if (quote.copy) {
|
if (quote.copy) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue