From f2a83960f8a000e5cecb164c2ced50cd8c6a4ca2 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Fri, 26 Oct 2012 15:18:44 -0700 Subject: [PATCH] (bug #41434) Converting format across 2 lists with paragraphs in between fail Thanks to Roan for suggesting this fix. Change-Id: I754dc34fbd3aaf2bdcb78bf89bfc896b612b4ee6 --- modules/ve/actions/ve.FormatAction.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ve/actions/ve.FormatAction.js b/modules/ve/actions/ve.FormatAction.js index 79ccbb510e..c927d012f3 100644 --- a/modules/ve/actions/ve.FormatAction.js +++ b/modules/ve/actions/ve.FormatAction.js @@ -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();