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)));
|
||||
};
|
||||
if (data) {
|
||||
if (data->spoiler) {
|
||||
adjust(data->spoiler->link);
|
||||
if (const auto spoiler = data->spoiler.get()) {
|
||||
if (spoiler->link) {
|
||||
adjust(spoiler->link);
|
||||
}
|
||||
}
|
||||
for (auto "e : data->quotes) {
|
||||
if (quote.copy) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue