Bug Report T1284689
Visible to All Users

RichEditControl throws InvalidOperationException on an attempt to open a document with a floating table

created 6 days ago (modified 6 days ago)

Steps to reproduce:

The issue can be reproduced with specific documents

Expected results:

The document is opened

Current results:

RichEditControl throws InvalidOperationException with the following call stack:

Call Stack
System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) at DevExpress.XtraRichEdit.Layout.Engine.PageController.AppendFloatingTables(List`1 from, Page page) at DevExpress.XtraRichEdit.Layout.Engine.PageController.AppendFloatingObjectsToPage(Page page) at DevExpress.XtraRichEdit.Layout.Engine.RowsController.CompleteCurrentColumnFormatting() at DevExpress.XtraRichEdit.Layout.Engine.RowsController.MoveRowToNextColumn() at DevExpress.XtraRichEdit.Layout.Engine.ParagraphFormatter.MoveToNextColumn() at DevExpress.XtraRichEdit.Layout.Engine.ParagraphFormatter.MoveToNextPage() at DevExpress.XtraRichEdit.Layout.Engine.ContinueParagraphFormatting.FormatParagraph() at DevExpress.XtraRichEdit.Layout.Engine.ParagraphFormatter.FormatParagraphCore() at DevExpress.XtraRichEdit.Layout.Engine.ParagraphFormatter.FormatParagraph() at DevExpress.XtraRichEdit.Layout.Engine.BackgroundFormatter.PerformPrimaryLayoutCore() at DevExpress.XtraRichEdit.Layout.Engine.BackgroundFormatter.WaitForPrimaryLayoutReachesLogPosition(DocumentLogPosition logPosition) at DevExpress.XtraRichEdit.RichEditView.EnsureFormattingCompleteForLogPosition(DocumentLogPosition logPosition) at DevExpress.XtraRichEdit.Commands.ScrollVerticallyByPhysicalOffsetCommandBase.ExecuteCore() at DevExpress.XtraRichEdit.Commands.RichEditMenuItemSimpleCommand.ForceExecute(ICommandUIState state) at DevExpress.Utils.Commands.Command.Execute() at DevExpress.XtraRichEdit.Mouse.RichEditMouseHandler.SmallScrollVerticallyCore(Single scrollRate) at DevExpress.XtraRichEdit.Mouse.RichEditMouseHandler.SmallScrollDown(Int32 wheelDelta) at DevExpress.XtraRichEdit.Mouse.RichEditMouseHandler.PerformWheelScroll(OfficeMouseEventArgs e) at DevExpress.XtraRichEdit.Mouse.RichEditMouseHandler.PerformWheelScroll(PortableMouseEventArgs e) at DevExpress.XtraRichEdit.Mouse.RichEditMouseHandler.HandleMouseWheel(PortableMouseEventArgs e) at DevExpress.Utils.MouseHandler.OnMouseWheel(PortableMouseEventArgs e) at DevExpress.Services.Implementation.MouseHandlerService.OnMouseWheel(PortableMouseEventArgs e) at DevExpress.XtraRichEdit.Internal.InnerRichEditControl.OnMouseWheel(PortableMouseEventArgs e) at DevExpress.XtraRichEdit.RichEditControl.HandleMouseWheel(MouseEventArgs e) at DevExpress.XtraRichEdit.RichEditControl.OnMouseWheelCore(MouseEventArgs e) at DevExpress.XtraRichEdit.RichEditControl.OnMouseWheel(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseWheel(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at DevExpress.XtraRichEdit.RichEditControl.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.