Split #if block in text.cpp to fix compile errors on some gcc versions.

This commit is contained in:
Sergey Popov 2008-09-04 13:27:38 +00:00
parent ccbc77ad6b
commit a29cb55df5

View file

@ -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;