* BUG: Fix a possible crash in the previous TextArea modification.


git-svn-id: svn://localhost/gambas/trunk@5572 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2013-03-04 01:31:05 +00:00
parent 45d8058159
commit 771c1933fc

View file

@ -166,7 +166,6 @@ BEGIN_METHOD(CTEXTAREA_new, GB_OBJECT parent)
wid->setLineWrapMode(QTextEdit::NoWrap); wid->setLineWrapMode(QTextEdit::NoWrap);
wid->setAcceptRichText(false); wid->setAcceptRichText(false);
wid->document()->setDocumentMargin(2);
THIS->widget.flag.fillBackground = true; THIS->widget.flag.fillBackground = true;
CWIDGET_new(wid, (void *)_object); CWIDGET_new(wid, (void *)_object);
@ -174,6 +173,8 @@ BEGIN_METHOD(CTEXTAREA_new, GB_OBJECT parent)
THIS->length = -1; THIS->length = -1;
THIS->align = ALIGN_NORMAL; THIS->align = ALIGN_NORMAL;
wid->document()->setDocumentMargin(2);
END_METHOD END_METHOD