Index: /CKEditor/trunk/_source/plugins/styles/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/styles/plugin.js	(revision 3352)
+++ /CKEditor/trunk/_source/plugins/styles/plugin.js	(revision 3353)
@@ -280,5 +280,5 @@
 		var boundaryNodes = range.getBoundaryNodes();
 		var firstNode = boundaryNodes.startNode;
-		var lastNode = boundaryNodes.endNode;
+		var lastNode = boundaryNodes.endNode.getNextSourceNode( true );
 
 		// The detection algorithm below skips the contents inside bookmark nodes, so
