U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » RichText,QTF,RTF... » RichEdit assertion
RichEdit assertion [message #52380] Mon, 16 September 2019 15:16 Go to previous message
warchef is currently offline  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
 
Read Message
Read Message
Read Message
Previous Topic: QTF and not UTF8 characters
Next Topic: Does a Ctrl may be a RichObject ?
Goto Forum:
  


Current Time: Sun Apr 26 16:56:33 GMT+2 2026

Total time taken to generate the page: 0.00550 seconds