Home » U++ Library support » RichText,QTF,RTF... » RichEdit assertion
RichEdit assertion [message #52380] |
Mon, 16 September 2019 15:16  |
warchef
Messages: 13 Registered: January 2019 Location: Hungary
|
Promising Member |
|
|
Hello!
I have following code:
#include <CtrlLib/CtrlLib.h>
#include <RichEdit/RichEdit.h>
using namespace Upp;
struct MyDlg : TopWindow {
typedef MyDlg CLASSNAME;
MyDlg()
{
Add(edit.SizePos());
//String good_qtf = "[ [ [@6 Test]]]";
String bad_qtf = "[ [ [@6 Test]&][ {{5000:5000h1; [@6 ]:: [@6 ]:: [@6 ]:: [@6 ]}}]]";
RichText txt;
{
//edit.PasteText(ParseQTF(bad_qtf)); -> All OK
edit.PasteText(ParseQTF(bad_qtf));// -> Exception
}
}
RichEdit edit;
};
GUI_APP_MAIN
{
MyDlg().Run();
}
Result:
ASSERT FAILED: Assertion failed in D:\upp\uppsrc\RichText\TxtData.cpp, line 170
part[parai].Is<Para>()
What do I do wrong? Please, anyone who can help me!
Sincerely,
Marton
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:32:27 CEST 2025
Total time taken to generate the page: 0.00842 seconds
|