(bug #41434) Converting format across 2 lists with paragraphs in between fail

Thanks to Roan for suggesting this fix.

Change-Id: I754dc34fbd3aaf2bdcb78bf89bfc896b612b4ee6
This commit is contained in:
Trevor Parscal 2012-10-26 15:18:44 -07:00
parent 21ea11c161
commit f2a83960f8

View file

@ -71,6 +71,8 @@ ve.FormatAction.prototype.convert = function ( type, attributes ) {
selection = ve.FormatAction.splitAndUnwrap(
surfaceModel, prevList, firstInList, lastInList, selection
);
// Reset
prevList = firstInList = lastInList = undefined;
}
if ( listItem ) {
prevList = listItem.getParent();