fix: use integers for message layout bounds (#6254)

This commit is contained in:
nerix
2025-06-07 12:54:53 +02:00
committed by GitHub
parent 37a752a231
commit c2e0fd8efe
5 changed files with 30 additions and 29 deletions
+4 -2
View File
@@ -52,8 +52,10 @@ public:
const Message *getMessage();
const MessagePtr &getMessagePtr() const;
qreal getHeight() const;
qreal getWidth() const;
/// In contrast to other metrics, the height and width are integers because
/// this is how the backing pixmap is measured - it needs whole integers.
int getHeight() const;
int getWidth() const;
MessageLayoutFlags flags;