mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fix votes count in RTL languages.
This commit is contained in:
parent
a142a2717c
commit
4d495b8d7c
1 changed files with 8 additions and 1 deletions
|
@ -425,7 +425,14 @@ void HistoryPoll::draw(Painter &p, const QRect &r, TextSelection selection, Time
|
|||
if (!_totalVotesLabel.isEmpty()) {
|
||||
tshift += st::msgPadding.bottom();
|
||||
p.setPen(regular);
|
||||
_totalVotesLabel.drawLeftElided(p, padding.left(), tshift, paintw, width());
|
||||
_totalVotesLabel.drawLeftElided(
|
||||
p,
|
||||
padding.left(),
|
||||
tshift,
|
||||
std::min(
|
||||
_totalVotesLabel.maxWidth(),
|
||||
paintw - _parent->infoWidth()),
|
||||
width());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue