summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-10-25 11:28:12 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-10-25 11:28:12 +0000
commit47b7c0f36b26a16a5c4a069d58cf419e115a644c (patch)
treeea3817a0e176a9e4b59432a778625921ffc0c733 /legacy/evas/src/lib
parent05031a3631e6005a91126152b9cfd686ac688bec (diff)
fix minor case of the segv's in evas.
SVN revision: 78443
Diffstat (limited to 'legacy/evas/src/lib')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_textblock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index 55b29af..cccad0a 100644
--- a/legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c
@@ -1531,6 +1531,7 @@ _format_command(Evas_Object *eo_obj, Evas_Object_Textblock_Format *fmt, const ch
1531 1531
1532 if (*p2) 1532 if (*p2)
1533 { 1533 {
1534 fprintf(stderr, "FMT: '%s' '%s'\n", p1, p2);
1534 if (!strcmp(p2, "bottom_right")) EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(fmt->style, EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT); 1535 if (!strcmp(p2, "bottom_right")) EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(fmt->style, EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT);
1535 else if (!strcmp(p2, "bottom")) EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(fmt->style, EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM); 1536 else if (!strcmp(p2, "bottom")) EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(fmt->style, EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM);
1536 else if (!strcmp(p2, "bottom_left")) EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(fmt->style, EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT); 1537 else if (!strcmp(p2, "bottom_left")) EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(fmt->style, EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT);
@@ -1796,7 +1797,7 @@ _format_dup(Evas_Object *eo_obj, const Evas_Object_Textblock_Format *fmt)
1796 fmt2 = calloc(1, sizeof(Evas_Object_Textblock_Format)); 1797 fmt2 = calloc(1, sizeof(Evas_Object_Textblock_Format));
1797 memcpy(fmt2, fmt, sizeof(Evas_Object_Textblock_Format)); 1798 memcpy(fmt2, fmt, sizeof(Evas_Object_Textblock_Format));
1798 fmt2->ref = 1; 1799 fmt2->ref = 1;
1799 fmt2->font.fdesc = evas_font_desc_ref(fmt->font.fdesc); 1800 if (fmt->font.fdesc) fmt2->font.fdesc = evas_font_desc_ref(fmt->font.fdesc);
1800 1801
1801 if (fmt->font.source) fmt2->font.source = eina_stringshare_add(fmt->font.source); 1802 if (fmt->font.source) fmt2->font.source = eina_stringshare_add(fmt->font.source);
1802 1803