Fix Lua Pangolayout ellipsis width

This commit is contained in:
Robin Gareus 2019-11-19 03:19:08 +01:00
parent 7b733eb3f0
commit 7aaf212a9b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class PangoLayout {
* @param width The desired width in Pango units, or -1 to indicate that no
* wrapping or ellipsization should be performed.
*/
void set_width (int width) {
void set_width (float width) {
_layout->set_width (width * PANGO_SCALE);
}