From 771c1933fcdb626433135612e977f0f922146e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Mon, 4 Mar 2013 01:31:05 +0000 Subject: [PATCH] [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 --- gb.qt4/src/CTextArea.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gb.qt4/src/CTextArea.cpp b/gb.qt4/src/CTextArea.cpp index 5052096d9..c559c3169 100644 --- a/gb.qt4/src/CTextArea.cpp +++ b/gb.qt4/src/CTextArea.cpp @@ -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