Page 1 of 1

[Bug/Solved] Multiline Editbox paste not work

Posted: Tue Jan 13, 2015 14:26
by fatmouse1984
Hi

I'm using cegui 0.8.4
Try to paste on multiline editbox, but failed. found this in MultiLineEditbox.cpp , line 744

Code: Select all

 
// if there is room
    if (getText().length() - clipboardText.length() < d_maxTextLen)
    {

This must be a typo, this " - " should be "+". i changed it, and it workd.

By the way , i'm trying to expand editbox but

Code: Select all

void   handleBackspace(void);
void   handleDelete(void);
.
.
.

they are all not virtual, i have to override onKeyDown :(

Re: Multiline Editbox paste not work

Posted: Tue Jan 13, 2015 16:58
by Kulik
Yeah, seems like a typo. Could you submit a pull request please?

We can make those 2 methods virtual but the change has to go to default.

Re: Multiline Editbox paste not work

Posted: Wed Jan 14, 2015 02:09
by fatmouse1984
Request sended.
Virgin pull request, hope i'm doing it right. :oops:

Re: Multiline Editbox paste not work

Posted: Wed Jan 14, 2015 15:35
by Kulik
Yes, thanks. I merged it.