Answered
Bug in Styles
Hi,
This bug is although reproducible, but the steps I've found are a bit complex. I've also confirmed this bug on SimpleEditorWithCSS sample. I'm using Gumbo build (4.0.0.5121) with TLF build-377.
Steps to reproduce on SimpleEditorWithCSS:
1. select "style" tab and then select Level to Span
2. select text from postion "X" to position "Y" and set styleName to "style1"
3. select text from postion "X-10" to position "Y-10" and set styleName to "style2"
4. select text from postion "X-5" to position "Y+10" and set styleName to "style1"
(Please note that these positions are not exactly needed, but these positions show the pattern which is needed to reproduce)
Result on released binaries: Editor Hangs
Result on debug build: Exception (I've pasted the stack from EditManager.doOperation onwords)
RangeError: invalid parameter to FlowGroupElement.split
at flashx.textLayout.elements::FlowGroupElement/splitAtPosition()
at flashx.textLayout.operations::FlowElementOperation/getTargetElement()
at flashx.textLayout.operations::ChangeElementStyleNameOperation/doOperation()
at flashx.textLayout.edit::EditManager/doInternal()
at flashx.textLayout.edit::EditManager/doOperation()
Thanks,
Ahmed
This bug is although reproducible, but the steps I've found are a bit complex. I've also confirmed this bug on SimpleEditorWithCSS sample. I'm using Gumbo build (4.0.0.5121) with TLF build-377.
Steps to reproduce on SimpleEditorWithCSS:
1. select "style" tab and then select Level to Span
2. select text from postion "X" to position "Y" and set styleName to "style1"
3. select text from postion "X-10" to position "Y-10" and set styleName to "style2"
4. select text from postion "X-5" to position "Y+10" and set styleName to "style1"
(Please note that these positions are not exactly needed, but these positions show the pattern which is needed to reproduce)
Result on released binaries: Editor Hangs
Result on debug build: Exception (I've pasted the stack from EditManager.doOperation onwords)
RangeError: invalid parameter to FlowGroupElement.split
at flashx.textLayout.elements::FlowGroupElement/splitAtPosition()
at flashx.textLayout.operations::FlowElementOperation/getTargetElement()
at flashx.textLayout.operations::ChangeElementStyleNameOperation/doOperation()
at flashx.textLayout.edit::EditManager/doInternal()
at flashx.textLayout.edit::EditManager/doOperation()
Thanks,
Ahmed
