mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in MediaGenericTextPart.
This commit is contained in:
parent
9d591ae806
commit
6bd2a7c962
2 changed files with 2 additions and 2 deletions
|
@ -304,7 +304,7 @@ QSize MediaGenericTextPart::countCurrentSize(int newWidth) {
|
||||||
const auto size = CountOptimalTextSize(
|
const auto size = CountOptimalTextSize(
|
||||||
_text,
|
_text,
|
||||||
st::msgMinWidth,
|
st::msgMinWidth,
|
||||||
newWidth - skip);
|
std::max(st::msgMinWidth, newWidth - skip));
|
||||||
return {
|
return {
|
||||||
size.width() + skip,
|
size.width() + skip,
|
||||||
_margins.top() + size.height() + _margins.bottom(),
|
_margins.top() + size.height() + _margins.bottom(),
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 55fff1a85b8d3f4962fe9d2133eb82409df2d8d8
|
Subproject commit ba969667301ae4d8da2c2f6c4528bea63443f607
|
Loading…
Add table
Reference in a new issue