[GB.QT4]
* 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:
parent
45d8058159
commit
771c1933fc
1 changed files with 2 additions and 1 deletions
|
@ -166,7 +166,6 @@ BEGIN_METHOD(CTEXTAREA_new, GB_OBJECT parent)
|
|||
|
||||
wid->setLineWrapMode(QTextEdit::NoWrap);
|
||||
wid->setAcceptRichText(false);
|
||||
wid->document()->setDocumentMargin(2);
|
||||
|
||||
THIS->widget.flag.fillBackground = true;
|
||||
CWIDGET_new(wid, (void *)_object);
|
||||
|
@ -174,6 +173,8 @@ BEGIN_METHOD(CTEXTAREA_new, GB_OBJECT parent)
|
|||
THIS->length = -1;
|
||||
THIS->align = ALIGN_NORMAL;
|
||||
|
||||
wid->document()->setDocumentMargin(2);
|
||||
|
||||
END_METHOD
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue