[pango/wip/baedert/for-master] Revert "layout: Ignore setting the width if it won't have any effect"
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/wip/baedert/for-master] Revert "layout: Ignore setting the width if it won't have any effect"
- Date: Tue, 14 Apr 2020 14:51:16 +0000 (UTC)
commit 31544cec1f5340553f82360d01710fb1ef5054f1
Author: Timm Bäder <mail baedert org>
Date: Tue Apr 14 16:50:55 2020 +0200
Revert "layout: Ignore setting the width if it won't have any effect"
This reverts commit 2ec0b4800c81747f99916dacdd99bc36f9311f40.
pango/pango-layout.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 872ccd71..44d59367 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -362,11 +362,6 @@ pango_layout_set_width (PangoLayout *layout,
if (width != layout->width)
{
layout->width = width;
-
- /* Increasing the width can only decrease the line count */
- if (layout->line_count == 1 && width > layout->width)
- return;
-
layout_changed (layout);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]