Index: /CKEditor/branches/versions/3.4.x/_source/plugins/styles/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.4.x/_source/plugins/styles/plugin.js	(revision 5744)
+++ /CKEditor/branches/versions/3.4.x/_source/plugins/styles/plugin.js	(revision 5745)
@@ -542,6 +542,6 @@
 		}
 
-		firstNode.remove();
-		lastNode.remove();
+		// Remove the bookmark nodes.
+		range.moveToBookmark( boundaryNodes );
 
 		// Minimize the result range to exclude empty text nodes. (#5374)
