summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorali-alzyod <ali198724@gmail.com>2020-11-19 10:29:48 +0200
committerali-alzyod <ali198724@gmail.com>2020-11-19 10:29:48 +0200
commitf56004db6ead55df47ac7355651ed911c88114c0 (patch)
treec0ec2ce6f282d73696ec13c1de78579a265ff3cf /src/lib/evas
parentac2987b3638e01866b4ff67c3a3bf95d6e373619 (diff)
evas_textblock: reduce content fit calculations
Reviewers: woohyun, id213sin Reviewed By: woohyun, id213sin Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12187
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index c8fd924b78..fcf16b7f95 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -17728,6 +17728,10 @@ int fit_text_block(Evas_Object *eo_obj)
17728 17728
17729 TEXT_FIT_CONTENT_CONFIG * fc = &o->fit_content_config; 17729 TEXT_FIT_CONTENT_CONFIG * fc = &o->fit_content_config;
17730 17730
17731 // If there are no text or Paragraphs, then do nothing
17732 if (efl_canvas_textblock_is_empty_get(eo_obj))
17733 return EVAS_ERROR_SUCCESS;
17734
17731 if (fc->options == TEXTBLOCK_FIT_MODE_NONE && !fc->force_refit) 17735 if (fc->options == TEXTBLOCK_FIT_MODE_NONE && !fc->force_refit)
17732 return EVAS_ERROR_SUCCESS; 17736 return EVAS_ERROR_SUCCESS;
17733 17737