xforms.git - xforms

index : xforms.git
xforms
summary refs log tree commit diff
diff options
context:
space:
mode:
authorJens Thoms Toerring <jt@toerring.de>2014年07月01日 11:34:28 +0200
committerJens Thoms Toerring <jt@toerring.de>2014年07月01日 11:34:28 +0200
commit79bb2ec594084d26c796cf6f9a2c930985803ab3 (patch)
tree3af18b525f1de1371cb9bcd0d1f7f350f1ba1cb9
parent996fbe32e32b177a985f3d54212b350ae40d62ec (diff)
downloadxforms-79bb2ec594084d26c796cf6f9a2c930985803ab3.tar.gz
Bug in font loading fixed
Diffstat
-rw-r--r--lib/ttfonts.cx 10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/ttfonts.cx b/lib/ttfonts.cx
index a71e9ab..3dcc688 100644
--- a/lib/ttfonts.cx
+++ b/lib/ttfonts.cx
@@ -103,8 +103,14 @@ static int
cmp_fnt_index( const void * arg1,
const void * arg2 )
{
- return ( ( const FL_FONT * ) arg1 )->index ==
- ( ( const FL_FONT * ) arg2 )->index;
+ size_t index1 = ( ( const FL_FONT * ) arg1 )->index;
+ size_t index2 = ( ( const FL_FONT * ) arg2 )->index;
+
+ if ( index1 < index2 )
+ return -1;
+ else if ( index1 == index2 )
+ return 0;
+ return 1;
}
generated by cgit v1.2.3 (git 2.25.1) at 2025年11月24日 20:58:14 +0000

AltStyle によって変換されたページ (->オリジナル) /