Fix crash in ME_GetRunSizeCommon(). Turn a FIXME into a TRACE.
This commit is contained in:
parent
b168f478be
commit
327b1632e5
|
@ -466,8 +466,6 @@ SIZE ME_GetRunSizeCommon(ME_Context *c, ME_Paragraph *para, ME_Run *run, int nLe
|
||||||
* in practice
|
* in practice
|
||||||
*/
|
*/
|
||||||
ME_GetTextExtent(c, run->strText->szData, nLen, run->style, &size);
|
ME_GetTextExtent(c, run->strText->szData, nLen, run->style, &size);
|
||||||
assert(run->style->tm.tmAscent>0);
|
|
||||||
assert(run->style->tm.tmDescent>0);
|
|
||||||
*pAscent = run->style->tm.tmAscent;
|
*pAscent = run->style->tm.tmAscent;
|
||||||
*pDescent = run->style->tm.tmDescent;
|
*pDescent = run->style->tm.tmDescent;
|
||||||
size.cy = *pAscent + *pDescent;
|
size.cy = *pAscent + *pDescent;
|
||||||
|
|
|
@ -383,7 +383,7 @@ void ME_ReleaseStyle(ME_Style *s)
|
||||||
TRACE("destroy style %p, total refs=%d\n", s, all_refs);
|
TRACE("destroy style %p, total refs=%d\n", s, all_refs);
|
||||||
else
|
else
|
||||||
TRACE("release style %p, new refs=%d, total refs=%d\n", s, s->nRefs, all_refs);
|
TRACE("release style %p, new refs=%d, total refs=%d\n", s, s->nRefs, all_refs);
|
||||||
if (!all_refs) FIXME("all style references freed (good!)\n");
|
if (!all_refs) TRACE("all style references freed (good!)\n");
|
||||||
assert(s->nRefs>=0);
|
assert(s->nRefs>=0);
|
||||||
if (!s->nRefs)
|
if (!s->nRefs)
|
||||||
ME_DestroyStyle(s);
|
ME_DestroyStyle(s);
|
||||||
|
|
Loading…
Reference in New Issue