Home » U++ Library support » LineEdit, EditFields, DocEdit » DocEdit call RemoveLines make Assertion failed.
Re: DocEdit call RemoveLines make Assertion failed. [message #14477 is a reply to message #14470] |
Wed, 27 February 2008 09:41 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
HenryXin wrote on Tue, 26 February 2008 21:55 | Thank for your reply.
But I try it only using line.Remove(0, remove_num);
But Fatal Error:
Assertion failed in C:\upp\uppsrc/Core/Vcont.h, line 17
i >=0 && i < item.
I read the code:
DocEdit inherit from TextCtrl has the memeber:
Vector<Ln> line;
and it defines its member:
Vector<Para> para;
So only call line.Remove(), when call the parm.Remove()?
And the void DocEdit::RemoveLines(int line, int count) is strange?
void DocEdit::RemoveLines(int line, int count)
{
para.Remove(line, count);
ASSERT(this->line.GetCount() == para.GetCount());
}
It removes para, but check the line == para?
Best Regards
Henry
|
I am sorry, I was under impression that we are talking about LineEdit... Well, DocEdit really does overload RemoveLines. 'para' works as cache of paragraph metrics (height for given width).
Means that if you override RemoveLines for DocEdit, you should call DocEdit::RemoveLines there... (must add that info to docs).
Other than that, I suggest posting a more complete code.
Mirek
|
|
|
|
|
DocEdit call RemoveLines make Assertion failed.
By: HenryXin on Sat, 23 February 2008 17:17
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: HenryXin on Sun, 24 February 2008 08:12
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: mirek on Tue, 26 February 2008 21:11
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: HenryXin on Wed, 27 February 2008 03:55
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: mirek on Wed, 27 February 2008 09:41
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: HenryXin on Thu, 28 February 2008 03:31
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: mirek on Mon, 03 March 2008 20:43
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: HenryXin on Sat, 08 March 2008 10:48
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: mirek on Sat, 08 March 2008 16:58
|
|
|
Re: DocEdit call RemoveLines make Assertion failed.
By: HenryXin on Sun, 09 March 2008 06:03
|
Goto Forum:
Current Time: Mon Apr 29 06:11:28 CEST 2024
Total time taken to generate the page: 0.02177 seconds
|