gimp r26682 - in trunk: . app/text
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26682 - in trunk: . app/text
- Date: Wed, 20 Aug 2008 17:07:47 +0000 (UTC)
Author: mitch
Date: Wed Aug 20 17:07:46 2008
New Revision: 26682
URL: http://svn.gnome.org/viewvc/gimp?rev=26682&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/text/gimptextlayout-render.c
Modified: trunk/app/text/gimptextlayout-render.c
==============================================================================
--- trunk/app/text/gimptextlayout-render.c (original)
+++ trunk/app/text/gimptextlayout-render.c Wed Aug 20 17:07:46 2008
@@ -92,9 +92,13 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]