Commit 15251ad8 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Removed redundant variable ptLastSplittableRun.

parent dfa80b35
...@@ -414,7 +414,6 @@ typedef struct tagME_WrapContext ...@@ -414,7 +414,6 @@ typedef struct tagME_WrapContext
ME_DisplayItem *pRowStart; ME_DisplayItem *pRowStart;
ME_DisplayItem *pLastSplittableRun; ME_DisplayItem *pLastSplittableRun;
POINT ptLastSplittableRun;
} ME_WrapContext; } ME_WrapContext;
#endif #endif
...@@ -271,7 +271,7 @@ static ME_DisplayItem *ME_SplitByBacktracking(ME_WrapContext *wc, ME_DisplayItem ...@@ -271,7 +271,7 @@ static ME_DisplayItem *ME_SplitByBacktracking(ME_WrapContext *wc, ME_DisplayItem
{ {
if (wc->pLastSplittableRun->member.run.nFlags & (MERF_GRAPHICS|MERF_TAB)) if (wc->pLastSplittableRun->member.run.nFlags & (MERF_GRAPHICS|MERF_TAB))
{ {
wc->pt = wc->ptLastSplittableRun; wc->pt = wc->pLastSplittableRun->member.run.pt;
return wc->pLastSplittableRun; return wc->pLastSplittableRun;
} }
else if (wc->pLastSplittableRun->member.run.nFlags & MERF_SPLITTABLE) else if (wc->pLastSplittableRun->member.run.nFlags & MERF_SPLITTABLE)
...@@ -299,7 +299,7 @@ static ME_DisplayItem *ME_SplitByBacktracking(ME_WrapContext *wc, ME_DisplayItem ...@@ -299,7 +299,7 @@ static ME_DisplayItem *ME_SplitByBacktracking(ME_WrapContext *wc, ME_DisplayItem
else else
{ {
/* restart from the first run beginning with spaces */ /* restart from the first run beginning with spaces */
wc->pt = wc->ptLastSplittableRun; wc->pt = wc->pLastSplittableRun->member.run.pt;
return wc->pLastSplittableRun; return wc->pLastSplittableRun;
} }
} }
...@@ -451,7 +451,6 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p) ...@@ -451,7 +451,6 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p)
|| ((run->nFlags & (MERF_GRAPHICS|MERF_TAB)) && (p != wc->pRowStart))) || ((run->nFlags & (MERF_GRAPHICS|MERF_TAB)) && (p != wc->pRowStart)))
{ {
wc->pLastSplittableRun = p; wc->pLastSplittableRun = p;
wc->ptLastSplittableRun = wc->pt;
} }
wc->pt.x += run->nWidth; wc->pt.x += run->nWidth;
return p->next; return p->next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment