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