mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1125 - Save an extra pango_layout_get_size in many cases * clutter/clutter-label.c: (clutter_label_create_layout_no_cache): Add a simple check before calling pango_layout_get_size(). (Johan Bilien)
This commit is contained in:
parent
73adac987d
commit
9f0842bacb
@ -1,3 +1,11 @@
|
||||
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
|
||||
|
||||
Bug 1125 - Save an extra pango_layout_get_size in many cases
|
||||
|
||||
* clutter/clutter-label.c:
|
||||
(clutter_label_create_layout_no_cache): Add a simple check
|
||||
before calling pango_layout_get_size(). (Johan Bilien)
|
||||
|
||||
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
|
||||
|
||||
* clutter/clutter-alpha.c:
|
||||
|
@ -154,7 +154,8 @@ clutter_label_create_layout_no_cache (ClutterLabel *label,
|
||||
pango_layout_set_markup (layout, priv->text, -1);
|
||||
}
|
||||
|
||||
if (allocation_width > 0)
|
||||
if (allocation_width > 0 &&
|
||||
(priv->ellipsize != PANGO_ELLIPSIZE_NONE || priv->wrap))
|
||||
{
|
||||
int layout_width, layout_height;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user