Split #if block in text.cpp to fix compile errors on some gcc versions.
This commit is contained in:
parent
ccbc77ad6b
commit
a29cb55df5
1 changed files with 3 additions and 1 deletions
|
@ -303,8 +303,10 @@ ttext& ttext::set_maximum_height(const int height)
|
|||
* @todo See whether we can make pango 1.20 mandatory before Wesnoth 1.6 is
|
||||
* released.
|
||||
*/
|
||||
#if defined(PANGO_VERSION_CHECK) && PANGO_VERSION_CHECK(1,20,0)
|
||||
#if defined(PANGO_VERSION_CHECK)
|
||||
#if PANGO_VERSION_CHECK(1,20,0)
|
||||
pango_layout_set_height(layout_, height == -1 ? -1 : height * PANGO_SCALE);
|
||||
#endif
|
||||
#endif
|
||||
maximum_height_ = height;
|
||||
calculation_dirty_ = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue