add PANGO_ALIGN_LEFT to the switch to fix warning about unhandled value.

2008-08-20  Michael Natterer  <mitch@gimp.org>

	* app/text/gimptextlayout-render.c (gimp_text_layout_render): add
	PANGO_ALIGN_LEFT to the switch to fix warning about unhandled value.


svn path=/trunk/; revision=26682
This commit is contained in:
Michael Natterer
2008-08-20 17:07:46 +00:00
committed by Michael Natterer
parent d51c50820f
commit 1206af4149
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-08-20 Michael Natterer <mitch@gimp.org>
* app/text/gimptextlayout-render.c (gimp_text_layout_render): add
PANGO_ALIGN_LEFT to the switch to fix warning about unhandled value.
2008-08-20 Michael Natterer <mitch@gimp.org>
Bug 496772 Position shown in the statusbar needs more

View File

@ -92,9 +92,13 @@ gimp_text_layout_render (GimpTextLayout *layout,
if (pango_layout_get_width (layout->layout) > 0)
switch (pango_layout_get_alignment (layout->layout))
{
case PANGO_ALIGN_LEFT:
break;
case PANGO_ALIGN_RIGHT:
x += pango_layout_get_width (layout->layout) - rect.width;
break;
case PANGO_ALIGN_CENTER:
x += (pango_layout_get_width (layout->layout) - rect.width) / 2;
break;