summaryrefslogtreecommitdiff
path: root/lib/fribidi-brackets.c
diff options
context:
space:
mode:
authorDov Grobgeld <dov.grobgeld@gmail.com>2017-11-14 18:40:53 +0200
committerDov Grobgeld <dov.grobgeld@gmail.com>2017-11-14 18:42:04 +0200
commita6fee5ee9d8987be1ada02d4ef5ed7c06893d05f (patch)
tree2b6b015a7f2520593e64b63d24b7df958d910353 /lib/fribidi-brackets.c
parent6e23ed0d4adf2e889cd593ed9ee4df3edaa3ba49 (diff)
downloadfribidi-a6fee5ee9d8987be1ada02d4ef5ed7c06893d05f.tar.gz
Fixed reversed logics in optimization in fribidi-bracket_types().
* As reported by Khaled Husny. * See: https://github.com/fribidi/fribidi/commit/f20b6480b9cd46dae8d82a6f95d9c53558fcfd20#commitcomment-25604008
Diffstat (limited to 'lib/fribidi-brackets.c')
-rw-r--r--lib/fribidi-brackets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fribidi-brackets.c b/lib/fribidi-brackets.c
index 6f6bdde..1dbc419 100644
--- a/lib/fribidi-brackets.c
+++ b/lib/fribidi-brackets.c
@@ -86,12 +86,12 @@ fribidi_get_bracket_types (
{
/* Optimization that bracket must be of types ON */
if (types[i] == FRIBIDI_TYPE_ON)
+ *btypes = fribidi_get_bracket (*str);
+ else
{
const FriBidiBracketType NoBracket = FRIBIDI_NO_BRACKET;
*btypes = NoBracket;
}
- else
- *btypes = fribidi_get_bracket (*str);
btypes++;
str++;