projects
/
platform
/
upstream
/
fontconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
781f104
)
Handle pattern elements moving during multiple edits
author
Keith Packard
<keithp@keithp.com>
Tue, 22 Apr 2003 06:27:27 +0000
(06:27 +0000)
committer
Keith Packard
<keithp@keithp.com>
Tue, 22 Apr 2003 06:27:27 +0000
(06:27 +0000)
src/fccfg.c
patch
|
blob
|
history
diff --git
a/src/fccfg.c
b/src/fccfg.c
index
87c38bc
..
36a76a4
100644
(file)
--- a/
src/fccfg.c
+++ b/
src/fccfg.c
@@
-1232,6
+1232,14
@@
FcConfigSubstituteWithPat (FcConfig *config,
!FcStrCmpIgnoreCase ((FcChar8 *) t->field,
(FcChar8 *) e->field))
{
+ /*
+ * KLUDGE - the pattern may have been reallocated or
+ * things may have been inserted or deleted above
+ * this element by other edits. Go back and find
+ * the element again
+ */
+ if (e != s->edit && st[i].elt)
+ st[i].elt = FcPatternFindElt (p, t->field);
if (!st[i].elt)
t = 0;
break;